Unsolved child class of QWidget and .ui
-
Hi, is it possible to associate a class derivated from QWidget and a .ui ?
I think it is only possible with QDialog and QMainWindow.. -
@stephane78-0 said in child class of QWidget and .ui:
Hi, is it possible to associate a class derivated from QWidget and a .ui ?
I'm not sure what that means. What exactly do you want to do?
-
@jsulm I want to use QtabWidget and add Tabs (child of QWidget),and I want to use a .ui for each tab
-
@stephane78-0 Take a look at this: https://doc.qt.io/qt-5/quiloader.html
-
I think in your case it's enough to just create custom widgets (based on / derived from
QWidget
-class) and add them withui->yourTabWidget->addTab(yourCustomWidget)
to the standardQTabWidget
. -
@jsulm thank you jsulm, I will try it