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

Using local types in remote qml files

$
0
0
The types which are used in the QML file which comes from a remote directory import MUST be exposed into a type namespace which is imported by that remote file. You cannot use just the Button type without importing anything in page1.qml, as the component base url of page1.qml is different to the component base url of main.qml. In short, if you want to do this, button.qml should be put into a module which is imported by both main.qml and page1.qml. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles