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.
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.
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..
From the documentation:
This seems to imply the way to use QDesktopWidget is to get it return from QApplication.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().
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.
Maybe you should suggest something about this feature to Trolls, then ;-)
Bookmarks