Displaying multiple panels on the same Main window (Qt 4.8)
I have a Main window and I want to create different panels such as diolog box but I want to display them on the same Main window one at a time , (not as a separate window). How would I do this ?
For example I have three actions in one menu each opens different panel when clicked. Now, when I click on one action, I want to display the panel on the Main window.
Thanks in advance.
When clicking on the action do you only show one panel ? If so look at "QStackedWidget":http://qt-project.org/doc/qt-4.8/qstackedwidget.html
If not, "QDockWidget":http://qt-project.org/doc/qt-4.8/qdockwidget.html
Hope it helps
Yes, but I want the panel to be shown from inside the Main window without hiding basic features such as menu bar and title of the Main window.
Then use QStackedWidget as main widget of your QMainWindow