PDA

View Full Version : [ASK] QGraphicsScene->addItem() crash



radith
28th February 2011, 10:35
Hi all,

I create graphic bar chart using GraphicView framework. I derive QGraphicsItem to create the bar chart, and this bar chart is added to the scene using QGraphicsScene::addItem().

I get error (crash), but I'm not sure whether it's caused when the item is added to the scene or in the painting process. This happens intermittently.

The error says:


ASSERT: "width > 0.0" in file painting\qrasterizer.cpp, line 710


Please advise.

cbennett
20th November 2014, 00:05
Hello,

I'm running Qt 5.3.2 on Windows 8 and from drawing some vertical lines using QGraphicsLineItem I am getting a similar crash in debug runs occasionally (about once every five runs):


ASSERT: "width > 0.0" in file painting\qrasterizer.cpp, line 773

Are there any recommendations on how to handle this?

Thank you