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

QAccessibleInterface::rect() for QuickView return unexpected result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.6
    • None
    • Windows

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes