On Wednesday, 2 August 2017 16:01:36 PDT Sergio Martins wrote:
> On 2017-08-02 13:26, Igor Mironchik wrote:
> > I got the solution - for QML and QRC friendship the only solution is
> > to use QRC urls...
>
> This is a recurring mistake people make, perhaps we could
> assert(!url.startsWith(":/"))
On 2017-08-02 13:26, Igor Mironchik wrote:
I got the solution - for QML and QRC friendship the only solution is
to use QRC urls...
This is a recurring mistake people make, perhaps we could
assert(!url.startsWith(":/")) or at least a warning in debug mode,
inside qurl.cpp.
Actually, I ran KDE
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
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 MyButt