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. Drawing a Bezier curve in QGraphicsScene[SOLVED]
Forum Update on Monday, May 27th 2025

Drawing a Bezier curve in QGraphicsScene[SOLVED]

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.8k Views
  • 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.
  • I Offline
    I Offline
    issam
    wrote on last edited by
    #1

    Hi,
    In my application I have to draw an Edge (curve) defined by 10 control points (Spline) as a QPainterPathItem in a graphic scene. The QPainterPath class provides only two functions to draw Bezier curves (4 control points) which are : cubicTo() and quadTo().

    Is theire any solution to do that such as transforming the Spline to a Bezier curves ?

    thanks in advance.

    http://www.iissam.com/

    1 Reply Last reply
    1
    • I Offline
      I Offline
      issam
      wrote on last edited by
      #2

      Ok, I have used cubicTo() since a spline is a sequence of Bezier curves :)

      http://www.iissam.com/

      1 Reply Last reply
      1

      • Login

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