I'm going to create a modified class of QDockWidget (lets call the class QAlexDockWidget) and place several objects of that class on my MainWindow during my App is running. The design of that class should be defined by layouts.
This is a function of the class QAlexDockWidget
Qt Code:
void QAlexDockWidget::setLayout_List() { hLayout->addWidget(btnNew); hLayout->addWidget(btnDel); hLayout->addWidget(btnEdit); vLayout->addWidget(listView); vLayout->addLayout(hLayout); this->setLayout(vLayout); }To copy to clipboard, switch view to plain text mode
My problem is, when i run the application the AlexDockWidget is still empty and I get the debugger message
Why is there an existig layout and how could I place my own layout instead of this default layout?QWidget::setLayout: Attempting to set QLayout "" on QAlexDockWidget "Titelleiste", which already has a layout
Bookmarks