[Qt-qml] Stroking lines and custom shapes (polygons) in QML?
Christian Kamm
christian.d.kamm at nokia.com
Mon Sep 27 09:31:58 CEST 2010
On Sunday 26 September 2010 18:57:45 ext Bastian Bense wrote:
> The first thing I was trying was drawing a simple line between navigation
> buttons in a vertically aligned (Column element) layout. While there are
> Elements like “Path” or “PathLine”; they all seem to have alignment of
> other elements along that specified path in mind.
>
> If that’s the case, it surprises me a bit since other primitives like
> Rectangle are there which can have border colors and fill colors or even
> gradients.
>
> I don’t really want to use SVG either, because I’d have to generate a lot
> of SVGs for a lot of different types of objects in that visualization. And
> that would result in a possibly dirtier approach than simply having a
> QGraphicsScene with custom painting objects.
It's still experimental, but this provides a HTML5 canvas-like API for QML and
may be what you're looking for:
http://qt.gitorious.org/qt-labs/qmlcanvas
Basic QML is deliberately restrictive to guarantee performance.
Cheers,
Christian
More information about the Qt-qml
mailing list