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

QGraphicsScene::render Crashes When Items Have CacheMode Set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.0
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • Qt 4.6 RC1 (binary package) on Windows XP. Genuine Intel(R) CPU T2500 @ 2.00GHz (2 CPUs). 2046MB RAM
    • b6070e9a069219e4049fcf017d6a160b80bf37b7

    Description

      Calling QGraphicsScene::render with an item in the scene that has CacheMode set to anything other than NoCache will cause a null pointer to be dereferenced. This appears to be because QGraphicsScene::render passes a null widget pointer to drawItems() which gets passed to drawItemHelper() and then to QApplication::desktop()->availableGeometry(QWidget * widget).

      The attached sample code reproduces the issue.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            sdanahy Scott Danahy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes