Home > Mobile >  The Widget painEvent back lock
The Widget painEvent back lock

Time:09-29

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 (),

CodePudding user response:

See the help documentation that is clear,

CodePudding user response:

reference 1st floor sinanw response:
this is a protected type? Cannot be called directly, the outside of the class inherits QWidget class, and then realize the virtual functions,

Ok thank you missed a Q

CodePudding user response:

reference floating a plain boiled water of reply: 3/f
see the help documentation, very clear instructions,

Thank you for missing a Q
The Widget will not help document to solve the thank you

CodePudding user response:

lulu lulu,, a sense of accomplishment habits oh I need nothing from make do make do
  •  Tags:  
  • Qt
  • Related