[Qt-jambi-interest] QSystemTrayIcon geometry width and height strange values.
Tomasz 'Trog' Welman
twelman at swmud.pl
Sun Mar 23 17:22:49 CET 2008
Look at this code:
QSystemTrayIcon sysTray = new QSystemTrayIcon(new QIcon("images/icon.png"),this);
sysTray.show();
QRect g = sysTray.geometry();
System.out.println(g.width()+" - "+g.height());
The above code prints strange random values, like that:
512 - 307
Why is that? The icon original size is 48x48 and I'm using X11,
so it should be scaled to 22x22 & the expected output should be:
22 - 22
The g.x() & g.y() methods return correct values (always :>).
--
Tomasz 'Trog' Welman
More information about the Qt-jambi-interest
mailing list