Answer the question
In order to leave comments, you need to log in
QHBoxLayout in QDockWidget?
how to put two tables on a layer and then put that layer in a QdockWidget?
Answer the question
In order to leave comments, you need to log in
QDockWidget *dwidget = new QDockWidget;
QTabWidget *tw = new QTabWidget();
QTabWidget *t2 = new QTabWidget();
QHBoxLayout *mainLayout = new QHBoxLayout;
mainLayout->addWidget(tw);
mainLayout->addWidget(t2);
QWidget *newWidget = new QWidget(this);
newWidget->setLayout(mainLayout);
dwidget->setWidget(newWidget);
dwidget->show();
addDockWidget(Qt::RightDockWidgetArea, dwidget);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question