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

Widgets embedded in QGraphicsView view have limited coordinates under X11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.1
    • Widgets: GraphicsView
    • None
    • Linux RHEL5 x86_64
      Qt version 4.6.1

    Description

      Widgets embedded in QGraphicsView view with a QGraphicsProxyWidget are limited to signed 16 bit int coordinates. This appears to be the results of X11 handling of the coordinates, even though the widgets are embedded in a graphics view, and not on the screen. This is because window coordinates under X11 are limited to signed 16 bit integers.

      In my use case I am trying to display an editing widget above a graphics item. But when the item has a scene coordinate (x or y) greater than 2^15, the widget is instead displayed off of the viewport with a negative coordinate. The coordinates "wrap around" to the negative.

      Example source attached showing problem. Notice that button2 is not at coordinate 100, 32800, but instead near coordinate 100, -32735.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            brandybuck David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes