Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-47030

QDesktopWidget::availableGeometry() returns incorrect value with secondary screen in version after Mac OS X Yosemite

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.12.0
    • 5.5.0
    • QPA
    • None
    • Mac OS X 10.10.3, 2 screens configuration
    • macOS

    Description

      After yosemite, menu bar can appear in secondary monitors (also can disappear). So menu bar size should be considered in secondary monitors too.
      QDesktopWidget::availableGeometry() returns incorrect value with secondary screen in version after Max OS X Yosemite.
      Steps to reproduce:

      • Get QDesktopWidget of secondary monitor.
      • Call availableGeometry().
      • It returns screen rect which not excludes menu bar size.

      I found this issue in Qt 5.3.1, but it seems to be occured in latest version.
      because

         m_availableGeometry = m_geometry;
      

      (github link)

      Attachments

        For Gerrit Dashboard: QTBUG-47030
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            harunene harunene
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes