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

QuickTestResult::grabImage() grabs wrong item location

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • Testing: QuickTest
    • None

    Description

      The grabImage() function from QtQuickTest will grab the wrong part of the screen if used on an item that is not a direct child of the main window.

      If the source code available here is still the current one, then the issue comes from the way [x, y] coordinates of the items are used: According to the documentation, coordinates are always relative to the item parent, but in this function they are directly used as if they were screen coordinates, which leads to the incorrect behavior.

      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
            fpe fpe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes