[Interest] QML import
Igor Mironchik
igor.mironchik at gmail.com
Wed Aug 2 14:26:21 CEST 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170802/ce198159/attachment.html>
More information about the Interest
mailing list