Home > OS >  A small problem about Qt
A small problem about Qt

Time:10-07

A pupil problems
I built a label_pos in UI, the base class is QLabel
What to do here say there is no

CodePudding user response:

The
refer to the original poster Multisim12 response:

a pupil problemI built a label_pos in UI, the base class is QLabel
What to do here say there is no


Your function mousePressEvent life into a class, or call the label plus the class they belong to

CodePudding user response:

Well, but this is useless,,,,,,,

CodePudding user response:

refer to the second floor Multisim12 response:
well, but not so,,,,,,,

Basic concept problem, not you mouseEvent function from belong to the UI class, he can only access global functions, global variables, if you want to access class of functions and variables of life, must want to instantiate this class, and then call,
  • Related