Hi,
I have a text object in my QML file. What I am trying to do is that I want this text file to appear with a circle shape on my simulator. Any ideas how? beacuse I tried rotating it using path object but I couldn't make it
Hi,
I have a text object in my QML file. What I am trying to do is that I want this text file to appear with a circle shape on my simulator. Any ideas how? beacuse I tried rotating it using path object but I couldn't make it
Play with the Rectangle's radius property.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
jeff28 (27th August 2012)
I tried that great idea. But my text does not take the shape of the circle. I put my Text in my Rectangle too. If I am not clear please try to think that I would like to make my border from a text object
I see. I doubt that there is an "easy" way to do this. I can suggest two options:
1. You can look at ShaderEffectItem
2. or you can dynamically create Text element for a single character and place it into correct place (that all characters will produce a circle). See Dynamic Object Management in QML.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Thank you I am looking to these things right away
Added after 46 minutes:
You are right those are not easy. Is it possible if I could use my .qml in a .cpp file and use QPainter to handle this problem?
Last edited by jeff28; 27th August 2012 at 14:22.
Sure, you can create your own QML components. See Extending QML Functionalities using C++.
...
For visual element types, this will usually mean a subclass of QDeclarativeItem.
...
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks