Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to get QQmlEngine from QQuickItem

$
0
0
I have a QQuickItem, I want to create QQuickText items dynamically in it according to the text property. Because this QQuickItem is a kind of plugin, so I can’t get the QQmlEngine directly from the view(I don’t know who will use it, I want it to hehave like a normal qml plugin), how to get QQmlEngine from QQuickItem so I can use QQmlComponent to create QQuickText? Bye the way,can I create QQuickText directly? can I use the private header files?

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images