PDA

View Full Version : Hidden QDialog position problems on X11



lalesculiviu
25th September 2011, 09:01
My problem: I have a succession of steps, QDialogs. Each new dialog should be shown on the center of previous dialog, which has just been hidden. (I know, not an elegant design, but it is too late now).

Something like:



QDialog dialog1(mainform);
dialog1.exec();
QDialog dialog2(dialog1);
dialog2.exec();


Under Windows, it is OK. Under X11, dialog2 is a bit upper (I think the reason is that after hiding dialog1, it loses its decorations).

How could this be solved, keeping code changes to the minimum?