Skip to content
QtWS25 Last Chance
  • Qt5 render issue

    Unsolved General and Desktop qt 5.13.2 rendering paintengine painting issues
    5
    0 Votes
    5 Posts
    738 Views
    V
    Hi, If anyone here has any experience or knowledge related to this issue, I would be extremely grateful for your input. Even a small suggestion or a nudge in the right direction could make a significant difference for me.
  • QWidget::paintEngine: Should no longer be called

    Unsolved General and Desktop qwidget paintengine
    7
    0 Votes
    7 Posts
    4k Views
    PsnarfP
    ...the rest. Next phase is to use recursion to make a Sierpinski Triangle. // Inner triangle pt1.setX(pt1.x() + side1.dx()/2); pt1.setY(pt1.y() + side1.dy()/2); pt2.setX(pt2.x() + side2.dx()/2); pt2.setY(pt2.y() + side2.dy()/2); pt3.setX(pt3.x() + side3.dx()/2); pt3.setY(pt3.y() + side3.dy()/2); side1 = QLineF(pt1, pt2); side2 = QLineF(pt2, pt3); side3 = QLineF(pt3, pt1); myTriangle.clear(); myTriangle << side1 << side2 << side3; mypainter.setPen(Qt::red); mypainter.drawLines(myTriangle);
  • 0 Votes
    11 Posts
    3k Views
    M
    Using the minimal example above, I fixed this by removing this call in our QOpenGlWidget subclass's constructor: setAttribute( Qt::WA_PaintOnScreen, true ); Removing this got rid of the paintengine calls (and numerous other problems). Thanks!!!!