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

QAccessibleInterface::rect() for QuickView return unexpected result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.6
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      from documentation: https://doc.qt.io/qt-5/qaccessibleinterface.html#rect

      QRect QAccessibleInterface::rect() const Returns the geometry of the object. The geometry is in screen coordinates.

      But standard AccessibleInterface for QuickView return unexpected result in some cases. If QuickView is independent window, then result is correct. But if QuickView integrated into some window, for example, QMainWindow, then return value of method QAccessibleInterface::rect() is incorrect. I tested two case: using QScrollArea + QuickView and simply QuickView.

      In case QScrollArea + QuickView:

      rect return value like x: 0, y: 0, width: correct width, height: correct height

      In case QuickView without QScrollArea return result has format:

      x: x relatively to top window, y: y relatively to top window, width and height correct.

      Minimal reproducable example: https://github.com/DimaKoltun/QuickView-Accessible-Bug

        Attachments

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

          Activity

            People

            Assignee:
            smd Jan Arve
            Reporter:
            dimakoltun dimakoltun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes