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

Details

    • Bug
    • Resolution: Done
    • 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.

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes