[Qt-interest] QSystemTrayIcon::geometry() returns invalid geometry

Luís Pereira luis.artur.pereira at gmail.com
Thu Jun 25 21:59:40 CEST 2009


I want to get the system tray coordinates right after tray creation.
But I get an invalid geometry.

trayIcon = new QSystemTrayIcon(this);
trayIcon->show();
QApplication::processEvents();
QRect g = trayIcon->geometry();
qDebug() << "g:" << g;

And I get:
g: QRect(-1,-1 22x22)

Any ideas ?


I'm using Qt: 4.5.0 on Linux.

Regards,
-- 
        Luís Pereira




More information about the Qt-interest-old mailing list