[Interest] QML import

Igor Mironchik igor.mironchik at gmail.com
Wed Aug 2 12:47:55 CEST 2017


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/4d3c2ff7/attachment.html>


More information about the Interest mailing list