Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.6.0
-
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.