jesse_mark
18th September 2013, 18:29
Hello,
when i add the dockWidget to the mainWindow it will be added to one of the four sides (top, bottom, left or right), but I want to add the dockWidget in anyplace just as other widgets.
to do that, this is what i did:
1 - Created a new widget class,
2 - Added dockWidget to the newWidget.
3- Added other objects that want to the DockWidget.
so basically now I have newWidget that has only dockWidget.
after that in the mainWindow, i created an object from the newWidget added it to gridLayout I have on the mainWindow.
Now, everything looks nice and exactly as I wanted, the issue I have is:
when I float the dockWidget, it will float fine but i can not move it around , it will stay in the corner of the screen and I can not move it. i can re-size it as I want though.
so any Idea what i need to set or change so i ll be able to move it.
thanks.
Added after 1 14 minutes:
I just added an example of what im trying to do. 9606
when i add the dockWidget to the mainWindow it will be added to one of the four sides (top, bottom, left or right), but I want to add the dockWidget in anyplace just as other widgets.
to do that, this is what i did:
1 - Created a new widget class,
2 - Added dockWidget to the newWidget.
3- Added other objects that want to the DockWidget.
so basically now I have newWidget that has only dockWidget.
after that in the mainWindow, i created an object from the newWidget added it to gridLayout I have on the mainWindow.
Now, everything looks nice and exactly as I wanted, the issue I have is:
when I float the dockWidget, it will float fine but i can not move it around , it will stay in the corner of the screen and I can not move it. i can re-size it as I want though.
so any Idea what i need to set or change so i ll be able to move it.
thanks.
Added after 1 14 minutes:
I just added an example of what im trying to do. 9606