Hi ,
My requirement is that i need movable widget(toolbar like ) inside central widget of QMainwindow .
It should have the ability to be moved atleast to the left most vertical side and right most vertical side of Central widget.
Attached is the image to get better view of the above requirement.
I tried following approaches.
1.Create Dockwidget and add this Dockwidget to layout that is set to central widget.
But with this approch it dosen't give the look like toolBar as Dockwidget has its own titleBar which i cant get rid of it.
2.Add the toolbar widget with other widgets to the layout that is set to central widget.
But with this i cant move the toolbar widget added to the layout.
3.Create second QMainwindow which can be added to the central widget of the Outer QMainwindow.
This is the Hack but it solves my purpose.But i dont know how dangerous it would be to maintain in future.
Is it a good idea of having Qmainwindow inside another Qmainwindow ?
Please help on this.Any help would be appreciated.
Thanks.
Bookmarks