[Qt-interest] Anyone Using the Qt/Motif Extension
Jake Colman
colman at ppllc.com
Wed Sep 29 18:40:52 CEST 2010
>>>>> "DB" == David Boosalis <david.boosalis at gmail.com> writes:
DB> Could you not do something like this:
DB> QRect rect= parentGeometry();
DB> QRect dialogRect = myDialog->geometry();
DB> int newX = rect.x() + (rect.width() - dialogRect.width())/2);
DB> int newY = rect.y() + (rect.height() - dialogRect.height())/2);
myDialog-> move(newX,newY);
myDialog-> show()
Interestingly, this problem appears to be effected by the Window Manager
that is in use. With fvwm I have the issue but with CDE I do not. With
Qt 3.3.4 this worked on both WMs.
Does this bit of info trigger any thoughts or ideas?
--
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