Since I can't guess the purpose of what you are doing, the only thing that comes to my mind is:
1. void setFloatable ( bool floatable ) for the toolbar of your MainWindow
2. or use QMdiArea if that helps anything
Since I can't guess the purpose of what you are doing, the only thing that comes to my mind is:
1. void setFloatable ( bool floatable ) for the toolbar of your MainWindow
2. or use QMdiArea if that helps anything
My central widget is already set as MDIArea. As shown in the image i want to have toobars within the central widget apart from the Qtoolbars of QMainwindow which are anyways set to floatable.
So just create a QToolBar and add to your MDIArea.
Well there isn't any method to add the toobar to MDIArea like addToolbar() function of QMainwindow.......
There is addWidget though...
i couldn't find the method addwidget so i used addsubwindow .That doesn't solve the purpose As it doesn't give the feel like its toolbar around the QMDIarea rather looks like window within MDIarea.
Have you tried setting different WindowFlags?
Anyway if you are already satisfied by using QMainWindow inside your QMdiArea, then it is a perfectly fine solution from my perspective.
Bookmarks