PDA

View Full Version : How can I get the Systray height ?



Nyphel
9th March 2007, 15:51
Hello,

I would like to get the Systray height, but I'm not sure that Qt allows it.
Why ? Cause I want my gui to be placed juste on the top of the task bar, in order to display informations like bubbles do.

I can get the screen height with screenGeometry(),
I can get my application height with a simple call to height() (It's a QDialog ;)),
but I don't know how to get the Systemtray height :confused:.

Do you know if it is possible ?
Perhaps getting the task bar height would be a better idea, but I haven't found how to do this to...

Thanks for your help ;).

jpn
9th March 2007, 16:25
Try QDesktopWidget::availableGeometry():


Returns the available geometry of the screen with index screen. What is available will be subrect of screenGeometry() based on what the platform decides is available (for example excludes the Qt::Dock and menu bar on Mac OS X, or the taskbar on Windows).

Nyphel
11th March 2007, 11:32
Oh thanks jpn, I should have this by myself :(

Nyphel
12th March 2007, 09:04
EDIT : Ups :o