Bugs with drawing Qt 5.x.x
-
Simple code:
@
QPainter painter(this);QPen pen(color, 1);
painter.setPen(pen);QPolygon pp;
pp << QPoint(0, 3) << QPoint(3, 0) << QPoint(7, 0) << QPoint(10, 3) << QPoint(10, 7) << QPoint(7, 10) << QPoint(3, 10) << QPoint(0, 7);painter.drawPolygon(pp, Qt::OddEvenFill);
@
Qt4: !http://files.rsdn.ru/38394/Qt4_circle.png(Qt4)!
Qt5: !http://files.rsdn.ru/38394/Qt5_circle.png(Qt5)!Same problem:
@
QPainter painter(this);painter.setPen(Qt::black);
painter.setBrush(color_);QPolygon pp;
pp << QPoint(0,15) << QPoint(8,15) << QPoint(8,4) << QPoint(4,0) << QPoint(0,4);painter.drawPolygon(pp, Qt::OddEvenFill);
@
Qt4: !http://files.rsdn.ru/38394/Qt4_pointer.png(Qt4)!
Qt5: !http://files.rsdn.ru/38394/Qt5_pointer.png(Qt5)! -
I think I saw a bug report on that somewhere. Try finding it, and if you don't succeed, report a new one.
-
Hm... may be. I'm told about this problem on "RSDN.RU":http://www.rsdn.ru/forum/cpp.qt/5021436
Maybe someone add the bug report. -
[quote author="nen777w" date="1362872946"]Hm... may be. I'm told about this problem on "RSDN.RU":http://www.rsdn.ru/forum/cpp.qt/5021436
Maybe someone add the bug report.[/quote]You should check and eventually add the bug report yourself, because you are the only understanding your problem completely.
Bug reports are on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspaBy the way the examples you are showing above are no longer displayed. Either a temporary server problem, or you have possibly removed them.