migel
23rd August 2011, 16:07
Hi
Let say I have QSplitter which is set as central widget in mainwindow with left and right contents. The QtabWidget TABS are displayed somehow above from left to right mainwindow egdes.
What I want is to load a content from a tab to the QSplitter right content.
Is it possible ?
yes ? any example
thanks
Added after 34 minutes:
I guess I can use QTabBar but how can I add it between tools and central widget ??
Added after 16 minutes:
That how !
QWidget *mainWidget = new QWidget;
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(_tabWidget);
mainLayout->addWidget(_splitter);
mainWidget->setLayout(mainLayout);
setCentralWidget(mainWidget);
Let say I have QSplitter which is set as central widget in mainwindow with left and right contents. The QtabWidget TABS are displayed somehow above from left to right mainwindow egdes.
What I want is to load a content from a tab to the QSplitter right content.
Is it possible ?
yes ? any example
thanks
Added after 34 minutes:
I guess I can use QTabBar but how can I add it between tools and central widget ??
Added after 16 minutes:
That how !
QWidget *mainWidget = new QWidget;
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(_tabWidget);
mainLayout->addWidget(_splitter);
mainWidget->setLayout(mainLayout);
setCentralWidget(mainWidget);