A
A
Artem Filimonov2017-01-23 09:56:55
Qt
Artem Filimonov, 2017-01-23 09:56:55

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

1 answer(s)
A
Artem Filimonov, 2017-01-23
@Nvek

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);

but how now to make them be able to move by the edges?. meaning to move the border between the first and second table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question