[Qt-interest] Default Positioning of a Dialog
Jake Colman
colman at ppllc.com
Wed Oct 6 21:13:58 CEST 2010
Scott,
Yes, the parent is set correctly. I've built the Qt Demo and Example
applications and verified that the "Find Files Dialog" example will
center over the launch window when executed using CDE as the WM but will
allow the WM to do explicit placement when executed under CDE.
Incidentally, I posted a question similar to this under a subject
heading related to the Qt/Motif extension. At the time I though this
was specific to the Qt/Motif extension. But I can replicate the same
problem using the Qt Demo.
...Jake
>>>>> "SAB" == Scott Aron Bloom <Scott.Bloom at onshorecs.com> writes:
SAB> Are you making sure the parent window is set?
SAB> IIRC if the parent is not null, it should center on the parent.
SAB> Scott
SAB> -----Original Message-----
SAB> From: qt-interest-bounces at trolltech.com
SAB> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Jake Colman
SAB> Sent: Wednesday, October 06, 2010 11:37 AM
SAB> To: qt-interest at trolltech.com
SAB> Subject: [Qt-interest] Default Positioning of a Dialog
SAB> I am working with Qt 4.7.0 on Solaris 10.
SAB> With Qt3, dialogs are always displayed centered over its parent window.
SAB> With Qt4 this behavior appears to be dependent on the Window Manager in
SAB> use. With fvwm, for example, the dialog is auto-positioned by the WM
SAB> but
SAB> with CDE it centers over the parent. Does anyone know how to ensure
SAB> that dialogs are always positioned over the parent regardless of the WM?
SAB> Yes, I know that there might be solutions that I can implement via
SAB> derived classes. But I also want to make sure that Qt's own built-in
SAB> dialogs (e.g., file dialogs, font dialogs, etc) behave the same way. Is
SAB> there some kind of global Qt setting that can be applied? Has anyone
SAB> else seen or dealt with this problem?
SAB> Thanks.
SAB> ...Jake
SAB> --
SAB> Jake Colman | Director, Software Development
SAB> Principia Partners LLC
SAB> 101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
SAB> t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
SAB> e: colman at ppllc.com | w: www.principiapartners.com
SAB> Credit technology innovation awards winner 2008 and 2009
SAB> _______________________________________________
SAB> Qt-interest mailing list
SAB> Qt-interest at trolltech.com
SAB> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
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
More information about the Qt-interest-old
mailing list