Unsolved how to programatically add a customized widgets to a QFrame
-
I have a frame
I have
class myTableView: public QTableView {
}
class myTreeView:public QTreeView {
}
could you please help me adding a these widgets frame_1 and frame_2
-
@Qt-Enthusiast
You from Code or in Designer ? -
from code
-
@Qt-Enthusiast
Simply add the #includes and use frame_1 as parent ( i assume its a frame already on form)
myTableView * myT = new myTableView ( frame_1);
If you wish you can also add a layout and then add
myT to that instead.