Is it possible to force a QDialog to be displayed just to the left of its parent?
Usually, it seems that a QDialog will be displayed at an arbitrary location if it has no parent assigned, or within its parent if one is assigned. I'd like mine (which is a property-setter for a collection of Qwt graphs) to appear alongside the parent, so that it doesn't obscure the very plots that it is meant to be controlling. I can guarantee that there is always enough space for it between the edge of the screen and the edge of the parent.
I can think of lots of hard ways to do this (such as the brute force method of finding the parent's location, then finding the dialog's size, and calculating the dialog's position accordingly - though I'm not sure even this will work if I want to fix the dialog's position before it has been displayed for the first time). Is there an 'easy' (or at least, an elegant) way?
Thanks,
Stephen.
Bookmarks