Hello: >From the docs:
http://doc.qt.io/qt-4.8/qmlreusablecomponents.html#qml-define-components "A component defined in a .qml file is directly usable by declaring the name of the component. For example, a button defined in Button.qml is created by declaring a Button. " What happens when we want to locate the Button.qml file inside QRC resource file? The documentation is missing on the syntax for this. If you just declare Button { id: gbutton }, the QML engine will trigger errors "file not found" import "qrc:/someprefix/somedir/Button.qml" as MyButton There are some references, albeit not useful, to qmldir inside the qrc file, but maybe the QML maintainer would have something to say about this topic. (Please forgive my transgression, I offered this topic up to the list before but received no good answers) Anybody have a clue about this?
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
