Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.2.1, Qt Creator 3.2.2
-
None
-
Qt 5.3.2, and Qt5.4 Beta, VS2013 32bits Windows 7
I attached an example program.
When commenting out the import statement in SubComponent.qml the main.qml looks oke in the designer.
Description
Register a type with qmlRegisterType in C++.
An import of this type in the main qml file is oke. The designer can handle that.
But if you add an extra qml file that does this import and you use this qml item in the main file, the designer shows nothing (height and width of item are 0). Setting them to a value results in an empty placeholder.
Running the application however renders the item correctly.
Also tried the Qt5.4 Beta and the same issue
This worked fine when I used Qt5.1.2
Attachments
Issue Links
- relates to
-
QTCREATORBUG-11377 QtQuick Designer doesn't show UI if importing C++ class
- Closed