Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bugs with drawing Qt 5.x.x

Bugs with drawing Qt 5.x.x

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    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)!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I think I saw a bug report on that somewhere. Try finding it, and if you don't succeed, report a new one.

      (Z(:^

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nen777w
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          [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.jspa

          By the way the examples you are showing above are no longer displayed. Either a temporary server problem, or you have possibly removed them.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved