hi,
i am using a QDialog to popup some meaasges (some other stubs are also there).
but the dialog is not popuping in the center. it is always popuping at left side.
is there any properties to set to get it in center?
regards
biswajit
hi,
i am using a QDialog to popup some meaasges (some other stubs are also there).
but the dialog is not popuping in the center. it is always popuping at left side.
is there any properties to set to get it in center?
regards
biswajit
i am using Qt 4.3.4 in solaris
Thats a problem i also have to deal with sometimes!
I usually use the following method for centering a dialog
I put this code at the constructor of a dialog.
Qt Code:
move( scr.center() - rect().center() );To copy to clipboard, switch view to plain text mode
But this will sometimes not be so nice on systems where dual monitors are used in extended desktop mode. Then the dialog centers at the center of the 2 monitors.
Ah i forgot to say, im using Qt3, but maybe it will work for version 4 also...
..:: Still Standing Strong ::..
biswajithit (4th September 2008)
May be u can use
0, to indicate the first screenQRect scr = QApplication::desktop()->screescreenGeometry(0);
thanks......
it really helps....
have a good day...
Bookmarks