Possible Creator bug in QML designer?
I noticed that if there are custom components in user folders inside the qml folder, designer shows the components without any imports, but when you try to instantiate one - designer crashes.
It works fine if you import "foldername" in main.qml. So maybe Creator should not show components from subfolders that are not imported?
Can someone else confirm it?
Crashes should never happen. So this is a bug. Can you file a bug report?
Wouldn't be the first one. I am just waiting for other users to confirm the bug is reproducible on their environments as well.
strahlex last edited by
Create a sample project on Github describing the problem so other developers can try it easily.
[quote author="strahlex" date="1398183377"]Create a sample project on Github describing the problem so other developers can try it easily.[/quote]
Yeah, might as well do a video tutorial while I am at it... The conditions to reproduce the bug have already been stated in the OP, but still:
@ - create a folder inside the qml folder of a QtQuick2 application
- put a QML file in it
- do not import it anywhere
- try to use it from the icon QML designer creates for it
- crash creator@
If that is not clear and simple enough, I don't see how wasting time to create github accounts and upload files there will be any more clear.
I just tried it with the official version of Qt Creator 3.1.0 on Windows 8 x64, and created a Qt Quick 2.2 project.
However, Qt Creator put the main.qml in the same folder as main.cpp, and added it to qml.qrc. There is no longer a "qml" subfolder.