I would like to use QML to draw different shapes or polygons such as triangles, diamonds, or simply diagonal lines. Is there a way to do this with the current version? If not will a future version have these features?
Thanks
I would like to use QML to draw different shapes or polygons such as triangles, diamonds, or simply diagonal lines. Is there a way to do this with the current version? If not will a future version have these features?
Thanks
I'm not sure I see what I'm supposed to see there. I would just like to draw some shape besides a rectangle or circle. I don't want to use an image file, and I don't want to use c++ to draw the image, only QML to draw it. Is that possible?
Thanks
The polygon class may be what you need http://doc.qt.nokia.com/4.7-snapshot/qpolygon.html
Got to keep the loonies on the path ...
No. Qt is a C++ library.
I did see that, but ideally I would like to be able to have the polygon drawn in QML before I apply any c++ code to it.
Why dont you simply use some image editor / creator , create a image file and use that image in QML ??
I want to be able to use all of the cool features of QML (ex: gradient), and I don't want to have to swap in and out pictures of every feature I want change (ex: the direction of the gradient).
Well, if you are feeling brave...http://labs.trolltech.com/blogs/2010...at-is-bauhaus/
Got to keep the loonies on the path ...
You can easily use vector graphics: Element Image is able to load SVG
Use the QML Canvas Plugin http://qt.gitorious.org/qt-labs/qmlcanvas
Bookmarks