Re: Available Screen Problem
There was a similar thread a while ago :
Don't know if it helps.
http://www.qtcentre.org/forum/f-qt-p...hlight=systray
Re: Available Screen Problem
Thanks for the post, but what is being suggested in the thread is what I am already doing.
The problem is that availableGeometry is returning exatly the same as screenGeometry.
Re: Available Screen Problem
Well, maybe I'm silly on this one, but does QDesktopWidget::availableGeometry() is exactly the same as QApplication::desktop()->availableGeometry() ?
Another (ugly) hint, would be to deduce the systray height from the QSystemTrayIcon geometry (which is available)
My 2 cents..
Re: Available Screen Problem
From the documentation:
Quote:
QDesktopWidget::QDesktopWidget ()
Creates the desktop widget.
If the system supports a virtual desktop, this widget will have the size of the virtual desktop; otherwise this widget will have the size of the primary screen.
Instead of using QDesktopWidget directly, use QApplication::desktop().
This seems to imply the way to use QDesktopWidget is to get it return from QApplication.
A quick test creating a new Desktop widget also had the same result. For some reason it availableGeometry is ignoring any taskbars on the screen totally.
Re: Available Screen Problem
Maybe you should suggest something about this feature to Trolls, then ;-)