Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.15.4
-
None
-
VS2022+Qt5.15.4MSVC2019_64
Description
When I draw a shape with an arc in a class that inherits from QGraphicsItem, an error will pop up in debug mode.But this pop-up will not appear in release mode.
The code is roughly like this:
void MyItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { //something else painter->save(); if (this->GetLock()) { painter->setBrush(QColor(51, 153, 255)); painter->setOpacity(0.2); } painter->drawPath(path()); //When crashing, the breakpoint stops here painter->restore(); }