I've created a QMainWindow upon which I want to be able to place 1 or 2 QDialog based child windows from a choice of 5. All the child windows are the same size and the workspace is slightly deeper than a child window and slightly wider than a pair of child windows.
When I activate the first child window, it appears in the upper left of the workspace. If I activate a second child window it appear next to the first. However, if I close the first child, the second still appears as if the first window was still there.
Is there any setting in QWorkspace, (or in the destructor of the children) that will always place a child in the left most position if the workspace is empty? The workspace seems to have memory of what happened previously.




Reply With Quote
Bookmarks