Thanks everyone, I got it working with a simple Declarative component. However 
the mouse update interval is pretty slow, My circles are looking like octagons. 

Is there an easy way to convert my QPolygonF to a smooth painter path?

Thanks again.



________________________________
From: Pelle Johnsen <[email protected]>
To: Jason H <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Thursday, September 29, 2011 2:24 PM
Subject: Re: [Qt-qml] lines?


Sounds like you are looking for 
qmlcanvas: http://qt.gitorious.org/qt-labs/qmlcanvas

 -Pelle


On Thu, Sep 29, 2011 at 8:18 PM, Jason H <[email protected]> wrote:

I am trying to make a DrawArea (where you have a pen and can scribble 
over the rect) and to do this, I was planning on using onPressed and 
onPositionChanged. I need to create an array of points to store the 
scribble, and have then drawn consecutively.
>
>But I am not seeing a Line element and the PathView seems to be used for 
>layout on a path, and not an actual line?
>
>How can I go about making a scribble?
>_______________________________________________
>Qt-qml mailing list
>[email protected]
>http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to