Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
EllipseShape in QML
ChrisW last edited by ChrisW
For some reason, the only properties available are id and fill for EllipseShape. I made sure that I imported QtQuick.Particles 2.0.
By the way, EllipseShape inherits Shape, so I'm looking for those properties.
A Former User last edited by
Hi! Is it only Creator that says something about a missing property or does the code actually give a runtime error? Sometimes Creator complains but the code is actually correct.
So sorry about the late reply. I missed this from earlier.
An image says a thousand words:
So for simplicity, I just have the EllipseShape. I had imported what the documentation said. I can see the properties tab on the far right, but as you can see, I don't have many options there either. Thanks so much for your help.
joeQ last edited by
@ChrisW Hi, friend. Welcome.
I want to know, How to set the QtCreator Design layout like your. How to let the
Code Edit Widgetlike your? What's Qt version you using? Qt5.9?
ChrisW last edited by ChrisW
If you are working with widgets, then you can only use the Qt Creator Designer. If you are working with QML, then this designer will automatically show up when you click on the design icon on the far left. Now, to be able to see the changes while you're editing the code, you need to click and drag the right border of the form view to the left for your liking.
A Former User last edited by A Former User
Hmm, I need to play around with it a bit first to be sure but like you said, it inherits a huge number of properties from
y. I suspect it's a problem with the graphical editor. I'll try to find out more over the course of the day. Maybe you can try it without the graphical editor in the meantime. Cheers!
Edit: I'm in UTC+1, "over the course of the day" means something like "within the next 16 hours from now on" ;)
I'm glad to see you again. Because I didn't know that you posted, I created another post asking people if I did the preliminary stuff correctly. Please feel free to see that post. The problem has to be there if I got the imports and the syntax correct.
I wouldn't give to much into the QML-Designer. In it's current state, its nice, but more of gimmick than an actually reliable tool. Like the Qt-Widget Designer used to be in its early stages.
In my current project I have a dozen qml- files that don't give me a valid preview in the Designer but work flawlessly when compiled.
Do you actually get errors when you compile your project or is it only the preview that is the problem here?
With EllipseShape, it will not show a window when I release it. If I run the snippet from this page:
It will run and not show the cubic curve. If I run this:
It will run and reproduce the same image that is shown in the doc. I didn't test all the curve tools, but this is my results with those two. I spoke with a mod and I get to explain this a little bit more with the Qt team later, so that they can look at it.
Thanks for your response.