[Qt-qml] lines?

Jason H scorp1us at yahoo.com
Fri Sep 30 00:07:13 CEST 2011


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 <pelle.johnsen at gmail.com>
To: Jason H <scorp1us at yahoo.com>
Cc: "qt-qml at qt.nokia.com" <qt-qml at qt.nokia.com>
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 <scorp1us at yahoo.com> 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
>Qt-qml at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110929/6e913713/attachment-0001.html 


More information about the Qt-qml mailing list