Hi,
Graphics View.PNG
I have updated a project that uses a QGrpahicsView and adds items using "scene->addRect(x,y,w,h,Qt::NoPen,qBrush)" and "scene->addEllipse(...)". "qBrush" is a simple QBrush that modifies the color using "qBrush.setColor(Qt::red)".
The problem is that as you can see on the attached image, when I select and item, the graphics view displays some kind of rectangle using a dash pattern. This doesn't appear using Qt4.8
Here you have the adding items code
qBrush.setStyle(Qt::SolidPattern);
qBrush.setColor(Qt::red);
QBrush qBrush;
qBrush.setStyle(Qt::SolidPattern);
qBrush.setColor(Qt::red);
QGraphicsEllipseItem* pqCircleItem = scene->addEllipse(qX,qY,10,10,Qt::NoPen,qBrush);
pqCircleItem ->setFlag(QGraphicsItem::ItemIsSelectable);
To copy to clipboard, switch view to plain text mode
I'm using Windows XP + Qt 5.4 (openGL) + Visual Studio 2010
Thanks,
Bookmarks