Hi all,
I have a doubt.
I have 2 QMainWindow. Can i make a one QMainWindow as the child of another QMainWindow???
Hi all,
I have a doubt.
I have 2 QMainWindow. Can i make a one QMainWindow as the child of another QMainWindow???
yes, you can.
Qt Code:
{ layout->addWidget(m_pbNewWindow); tabWidget->addTab(page, tr("Test")); connect(m_pbNewWindow, SIGNAL(clicked()), SLOT(newWindow())); setCentralWidget(tabWidget); } void Test::newWindow() { Test *test = new Test(this); test->setAttribute(Qt::WA_DeleteOnClose); test->show(); }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
technically yes, but they wont come one inside another. plus what is your motivation for this atrocity![]()
ok...can it be displayed as a pop-up window. i.e. if i click a button from the parent QMainWindow, can pop-up the 2nd QMainWindow??
don't my example work?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Dear Spirit, i will try based on ur example.
Dear talk2amulya, i have a mainwindow and when i clicked a button from the main window, i need to display another window. This window contains menu, toolbar, tool buttons etc... so i think i need to use QMainWindow.
Bookmarks