Lock function called when an error in the beginning, but after the restart the QT, write the related things in the window cannot output,
CodePudding user response:
This is a protected type? Cannot be called directly, the outside of the class inherits QWidget class, and then realize the virtual functions,
CodePudding user response:
Is the use of the positive solution, upstairs painEvent way, declared in the header file for [virtual protected] void QWidget: : paintEvent (QPaintEvent * event), and implementation, and are not called directly, but call repaint () or update (),