Results 1 to 5 of 5

Thread: Qt Drawing

  1. #1
    Join Date
    Dec 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt Drawing

    How do I add an arc with a certain radius to a drawing path. I don't want to draw a seperate line and arc and try and get them to match up. I want one continous path.

  2. #2
    Join Date
    Apr 2009
    Location
    Ottawa, Canada
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Drawing

    Is drawCoord
    what you are looking for?

  3. #3
    Join Date
    Dec 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Drawing

    I'm looking to do something more like the the opened ended rectangle below with one side having an arc (Slashes are arcs)

    ___________
    \
    ___________/

  4. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Qt Drawing

    Look at QPainterPath.

  5. #5
    Join Date
    Dec 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Drawing

    Quote Originally Posted by SixDegrees View Post
    Look at QPainterPath.
    Yea thats what I needed. had to use arcMoveTo() to get the right result

Similar Threads

  1. Drawing in QML
    By JeffC in forum Newbie
    Replies: 10
    Last Post: 10th June 2011, 18:25
  2. 2D drawing
    By WXNSNW in forum Qt Programming
    Replies: 3
    Last Post: 5th October 2010, 23:01
  3. Drawing 3d pie
    By toutarrive in forum Qt Programming
    Replies: 3
    Last Post: 5th September 2009, 16:21
  4. Drawing
    By chethana in forum Qt Programming
    Replies: 1
    Last Post: 16th October 2007, 06:29
  5. Drawing using QT
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 17th March 2006, 04:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.