Results 1 to 3 of 3

Thread: How to draw arc with PathArc?

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default How to draw arc with PathArc?

    Qt Code:
    1. QMake version 3.0
    2. Using Qt version 5.1.0 in /opt/Qt5.1.0//5.1.0/gcc_64/lib
    To copy to clipboard, switch view to plain text mode 

    From: http://qt-project.org/doc/qt-5.0/qtq...c.html#details

    Qt Code:
    1. import QtQuick 2.0
    2.  
    3. Rectangle
    4. {
    5. Path
    6. {
    7. startX: 50; startY: 50
    8.  
    9. PathArc
    10. {
    11. x: 150; y: 50
    12. radiusX: 75; radiusY: 50
    13. }
    14. }
    15. }
    To copy to clipboard, switch view to plain text mode 

    This:
    Qt Code:
    1. qmlscene --maximized arc.qml
    To copy to clipboard, switch view to plain text mode 
    results in an empty window. No arcs get displayed

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: How to draw arc with PathArc?

    Seems you cannot use PathArc to draw an arc. It is meant for use with PathView !

    To draw an arc in qml, you might have a look at - this

  3. The following user says thank you to aamer4yu for this useful post:

    TheIndependentAquarius (16th October 2013)

  4. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: How to draw arc with PathArc?

    That was helpful, thanks.

Similar Threads

  1. Replies: 10
    Last Post: 10th February 2011, 23:31
  2. How to draw a arc
    By ProTonS in forum Qt Programming
    Replies: 3
    Last Post: 9th September 2009, 15:41
  3. Draw on a Progress Bar
    By fruzzo in forum Qt Programming
    Replies: 1
    Last Post: 8th December 2007, 15:31
  4. From calculator: how to draw
    By mattia in forum Newbie
    Replies: 1
    Last Post: 26th October 2007, 11:22
  5. Best way to draw x,y graphs
    By steg90 in forum Newbie
    Replies: 1
    Last Post: 14th May 2007, 11:52

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
  •  
Qt is a trademark of The Qt Company.