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

QAbstractScrollArea: When calling mapToGlobal() on the viewport after setGeometry() is called on the scrollarea can return incorrect values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.5.3, 4.6.2
    • GUI: Window management
    • None
    • Linux only.

    Description

      QAbstractScrollArea: When calling mapToGlobal() on the viewport after setGeometry() is called on the scrollarea can return incorrect values. Calling geometry() and frameGeometry() shows that the window has indeed moved, but calling mapToGlobal() on the viewport can give values that refer to the old location.

      In the example, to reproduce it just click on the window when it is visible and see the output.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes