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

QuickTestResult::grabImage() grabs wrong item location

XMLWordPrintable

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

      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.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fpe fpe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes