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

QuickTestResult::grabImage() grabs wrong item location

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: Testing: QuickTest
    • Labels:
      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

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              fpe fpe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes