Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Possible Creator bug in QML designer?

    Tools
    4
    6
    1509
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      utcenter last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • T
        ThomasHartmann last edited by

        Crashes should never happen. So this is a bug. Can you file a bug report?

        1 Reply Last reply Reply Quote 0
        • U
          utcenter last edited by

          Wouldn't be the first one. I am just waiting for other users to confirm the bug is reproducible on their environments as well.

          1 Reply Last reply Reply Quote 0
          • strahlex
            strahlex last edited by

            Create a sample project on Github describing the problem so other developers can try it easily.

            Feel free to check out my website machinekoder.com
            and my pet projects Intellicute and QtQuickVcp

            1 Reply Last reply Reply Quote 0
            • U
              utcenter last edited by

              [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.

              1 Reply Last reply Reply Quote 0
              • JKSH
                JKSH Moderators last edited by

                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.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post