I got the solution - for QML and QRC friendship the only solution is to
use QRC urls...
I.e.
engine.load(QUrl("qrc:/qml/main.qml"));
works...
2017-08-02 13:47, Igor Mironchik пишет:
Hi.
I have directory "qml" with QML files where are placed main.qml and
MyButton.qml.
This directory is in QRC, i.e. ":/qml/main.qml" and
":/qml/MyButton.qml" are in the resources.
When I load QML with
QQmlApplicationEngineengine(":/qml/main.qml");
I receive
file::/qml/main.qml:13 MyButton is not a type
How to fix it?
---
This email has been checked for viruses by AVG.
http://www.avg.com
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest