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

QScreen::geometry() not always correct in orientationChanged() slot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • GUI: Other
    • None
    • Samsung S22
    • Android

    Description

      In the slot for QScreen::orientationChanged(), it seems QScreen::geometry() does not always reflect the geometry of the new orientation. Sometimes it has the new geometry, sometimes the old:

      E.g. here is the value of the orientation parameter and value of geometry() for several sequential calls of orientationChanged() as the screen is rotated.

      Qt::LandscapeOrientation QRect(0,0 411x806)
      Qt::PortraitOrientation QRect(0,0 806x411)
      Qt::LandscapeOrientation QRect(0,0 806x411)
      Qt::PortraitOrientation QRect(0,0 806x411)

       

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srcejon Jon Beniston
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: