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

QGraphicsItem does not scroll when ItemCoordinateCache is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.2, 4.6.3, 4.7.1
    • Widgets: GraphicsView
    • None
    • Ubuntu 9.10
    • 44144cf60e978f7d5d70aec49d114d57832a78c3

    Description

      QGraphicsItem::scroll seems to do nothing when cache mode is set to ItemCoordinateCache. ItemUsesExtendedStyleOption is also enabled.

      It works if boundingRect() is passed as rect in scroll(dx, dy, rect), but according to docs boundingRect is used by default if no rect is specified.

      Attached test case (original from O. Romashin), run with -cached or export ITEMCACHE=1 to test with ItemCoordinateCache.

      Attachments

        1. hqt_10400.diff
          3 kB
        2. main.cpp
          2 kB
        3. qgvscroll.tar.gz
          197 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            menard Alexis Menard (closed Nokia identity) (Inactive)
            kko Kimmo Kotajärvi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes