Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qpainterpath
    Log in to post

    • SOLVED QPolygonF for non-intersecting subpaths
      General and Desktop • qt5 qpainterpath qpolygonf • • sDmt  

      5
      0
      Votes
      5
      Posts
      272
      Views

      @Pl45m4 True, I see that QPainterPath is getting me nowhere in this case. Thanks.
    • SOLVED QGraphicsView/Scene paints over other widgets
      General and Desktop • qgraphicsview qgraphicsscene qpainter qpainterpath • • Niagarer  

      11
      0
      Votes
      11
      Posts
      2548
      Views

      @Niagarer Good found. :)
    • UNSOLVED Snapping point to path
      General and Desktop • qpainterpath snapping • • Joel Bodenmann  

      2
      1
      Votes
      2
      Posts
      390
      Views

      @Joel-Bodenmann Two points: 1. You can decompose the path to get each element and work on those independently. 2. You must contend with lines, polylines, ellipses and Bezier splines. Closes point on a line is simply a vector projection. Bezier splines are more complex. For an approximation you can get polyline approximation to the remainder using parametric equations, then use the same technique for lines. I am writing a book on this subject. By the way, I recall seeing an article on the method you propose.
    • UNSOLVED clockwise/counter-clockwise drawing would influence the fill rule in shape()?
      General and Desktop • qt4 qpainterpath polygon fill windingfill • • helloworld12345  

      1
      0
      Votes
      1
      Posts
      505
      Views

      No one has replied

    • UNSOLVED Triangulator for QPainterPath
      General and Desktop • qpainterpath triangulator • • THE_MASTER  

      6
      0
      Votes
      6
      Posts
      1493
      Views

      There is a reason why there are almost no usable free implementations out there: Because it's harder than one would think at first sight. Maybe start which Shewchuk's papers to get a first idea of the problem.
    • how i can create a triangle in class QPainterPath path?
      General and Desktop • qpainterpath triangle • • stackprogramer  

      3
      0
      Votes
      3
      Posts
      1023
      Views

      @Wieland ,nice .......it works ,thanks for reply:)
    • UNSOLVED problem in using QPainterPath class??
      General and Desktop • problem qpainterpath extralines • • stackprogramer  

      5
      0
      Votes
      5
      Posts
      1283
      Views

      @Wieland it is example of Qt ,its name diagramscene thanks for reply
    • SOLVED QPainterPath from list of points
      General and Desktop • qgraphicsitem qpainterpath shape • • Joel Bodenmann  

      24
      0
      Votes
      24
      Posts
      9088
      Views

      @mrjj Well, thanks to you and @kshegunov too. You guys are amazing!
    • [SOLVED] How to delete internal curves in QPainterPath
      General and Desktop • qpainter qpainterpath • • Vitek  

      2
      0
      Votes
      2
      Posts
      1313
      Views

      Hi and welcome It has an overloaded + operator so you can just use that. Note: This does not delete it as such, it combines. void SWidget::paintEvent ( QPaintEvent* e ) { QPainter p ( this ); QPainterPath path1; path1.addRect ( 20, 20, 60, 60 ); QPainterPath path2; path2.addEllipse ( 40, 40, 60, 60 ); QPainterPath path3 = path1 + path2; p.drawPath ( path3 ); }