I am currently dynamically creating a Scale object with Qt.createQmlObject.
Is it possible to do with createObject?
If so, what URL would I give to get the component?
I am currently dynamically creating a Scale object with Qt.createQmlObject.
Is it possible to do with createObject?
If so, what URL would I give to get the component?
Component.createObject() doesn't take an URL, did you mean Qt.createComponent()?
If so, the URL is the location of the QML file that defines the component.
Cheers,
_
Yes, sorry, I meant Qt.createComponent.
The problem is that "Scale" is a built-in element. I don't see a QML file.
How does one dynamically instantiate a built-in element?
Instead of creating the Component from a file, you create it directly in code.
Cheers,
_
Bookmarks