Results 1 to 2 of 2

Thread: what the difference betwee QDesktopWidget::availableGeometry(int) screenGeometry

  1. #1
    Join Date
    Mar 2012
    Location
    china
    Posts
    54
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default what the difference betwee QDesktopWidget::availableGeometry(int) screenGeometry

    what is the difference between QDesktopWidget::availableGeometry(int) and screenGeometry ?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: what the difference betwee QDesktopWidget::availableGeometry(int) screenGeometr

    According to the docs QDesktopWidget::availableGeometry() will usually be smaller than QDesktopWidget:: screenGeometry() for the same screen. For example, on Windows, the available geometry might subtract out things such as the Windows task bar, but screen geometry does not. So if the task bar is 50 pixels high, the height() of the QRect returned by availableGeometry() could be 50 pixels less than the QRect returned by screenGeometry().

    I do not know if this actually happens on Windows, or if changes to the task bar's "Always on top" property changes the availableGeometry.

Similar Threads

  1. Replies: 0
    Last Post: 5th July 2011, 11:56
  2. QDockWidget & QDesktopWidget
    By winkle99 in forum Qt Programming
    Replies: 0
    Last Post: 21st September 2010, 23:26
  3. bug in qt 4.7rc1? wrong availablegeometry
    By faenil in forum Newbie
    Replies: 0
    Last Post: 29th August 2010, 21:23
  4. QDesktopWidget
    By ToddAtWSU in forum Qt Programming
    Replies: 0
    Last Post: 3rd July 2008, 13:31
  5. availableGeometry() & Gnome
    By December in forum Qt Programming
    Replies: 0
    Last Post: 6th April 2007, 16:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.