Home > Mobile >  How to call other UI controls in the class?
How to call other UI controls in the class?

Time:12-07

Need to call in class A, B A QTreeWidget controls,
Can modify some functions using QTreeWidgetItem way, because I want to use insertTopLevelItems () and expandAll () function, involves the operation of the control itself, there is no way

Inheritance is A public QDialog, inherited B is public QMainWindow,
Internet method cannot be used, I can think of way is to use dynamic creation to recreate the QTreeWidget, but has written a lot of code, have to overhaul, have a great god what method???

CodePudding user response:

A pointer?
  •  Tags:  
  • Qt
  • Related