POLYGONS in QML
Hello,
Is it possible to create a trapezium in QML?
Is it through Box 2D or is there any other way in creating the trapezium shape?
Can anyone convey me the memory size of Box2D library?
Thanks in advance:)
3 replies
Hello,
It depends on what you want to do. If you want one or a few trapeziums that do not interact with other objects, you can use Image. If you want trapezium that can change its color, width, height and so on you should subclass QDeclarativeItem [doc.qt.nokia.com]
Also note that Box2D does not provide visual items.
Not by only using QML. As task_struct mentioned above, if you’d like that functionality, you’ll have to create a custom QDeclarativeItem in C++ to do it.
There’s an example here [developer.nokia.com] which shows how you can create a Line. You can apply the same principles to drawing your own custom object.
You must log in to post a reply. Not a member yet? Register here!


