Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13211

Design view of parent qml file no longer shows content of child qml file that uses import of c++ registered type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 4.2.0-beta1
    • Qt Creator 3.2.1, Qt Creator 3.2.2
    • Quick Designer
    • 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.

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thohartm Thomas Hartmann
            japiekrekel Michel van Wonderen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes