[Qt-interest] Default Positioning of a Dialog

Scott Aron Bloom Scott.Bloom at onshorecs.com
Wed Oct 6 21:06:27 CEST 2010


Are you making sure the parent window is set?

IIRC if the parent is not null, it should center on the parent.

Scott

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Jake Colman
Sent: Wednesday, October 06, 2010 11:37 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Default Positioning of a Dialog


I am working with Qt 4.7.0 on Solaris 10.

With Qt3, dialogs are always displayed centered over its parent window.
With Qt4 this behavior appears to be dependent on the Window Manager in
use.  With fvwm, for example, the dialog is auto-positioned by the WM
but
with CDE it centers over the parent.  Does anyone know how to ensure
that dialogs are always positioned over the parent regardless of the WM?

Yes, I know that there might be solutions that I can implement via
derived classes.  But I also want to make sure that Qt's own built-in
dialogs (e.g., file dialogs, font dialogs, etc) behave the same way.  Is
there some kind of global Qt setting that can be applied?  Has anyone
else seen or dealt with this problem?

Thanks.

...Jake


-- 
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: colman at ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008 and 2009

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list