[Qt-qml] painting

warwick.allison at nokia.com warwick.allison at nokia.com
Tue Jun 22 01:45:04 CEST 2010


> But if you're not a designer, allergic to graphics software, or simply
> just doing an initial prototype that doesn't have to look good, some
> rudimentary painting can be very handy even for static ui components.

If it's rudimentary, use a plain rectangle with some text in it describing what you would put there if you WERE a graphic artist. Then iterate with a graphic artist. This will give a better workflow than spending your time writing JavaScript instructions that are opaque to the artist.

> Otherwise, why not remove Rectangle? Surely you could always use a better-looking Image instead?

Performance. Drawing a rectangle is faster (whereas an ellipse is not, and certainly any composition of drawing commands executed by JavaScript every frame is not).

--
Warwick




More information about the Qt-qml mailing list