[Qt-interest] Modeless dialog window dos'nt response to the move command

Andre Somers andre at familiesomers.nl
Tue May 18 10:33:18 CEST 2010


On 18-5-2010 8:54, Meir Yanovich wrote:
> you are right , the coordinates i set in the move method , was bigger 
> then my desktop coordinates
> but this is what i got from the QSystemTrayIcon->geometry()
> i like to position the Qdialog above the Systemtray icon , so why the 
> QSystemTrayIcon->geometry() gives me wrong position ?

Why do you assume that the coorinate from QSystemTrayIcon is wrong? The 
topleft of the system tray icon is (probably) on the very bottom of the 
screen, on your taskbar. Do you really think moving a window to that 
position (note, you are setting the position of the topleft corner of 
that window!) is going to result in a visible window? On my setup at 
least, windows will slide *under* the taskbar...

What may help is making sure that instead of trying to display the 
topleft corner on the position of the system tray icon, you try to 
position your window so the bottom right corner ends up there. How you 
can do that, I'll leave as an excersise to the reader. Note that this 
won't work on systems that don't have their taskbar where you expect it 
to be...

André




More information about the Qt-interest-old mailing list