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

Creator crashes when trying to type "import" when using inline components in QML file

    XMLWordPrintable

Details

    • Linux/Other display system, Windows
    • 13be5e7eb47add4a8784eab5cab3a61ee2430d8e (qt-creator/tqtc-qt-creator/5.0)

    Description

      Qt Creator crashes when trying to type "import" when using an inline component in the QML file where the import is to be done.

       

      The bug can be recreated as follows:

      1. Create new empty QtQuick Application
      2. Add a inline component to any new or existing QML file of the project within the Qt Creator
      3. Try to make a import below the existing imports of the QML file where the inline component was added
      4. The Qt Creator crashes while you try to type "import"

       

      import QtQuick 2.0

      // if you try to type "import" here the Qt Creator will crash

      Item {

      component TestInlineComponent: Item {}

      }

       

      Workaround:

      If you try to make an import in a file with a inline component, just write your import not below the existing imports. E.g. type your import between or above the existing imports.

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            tommyshelby Thomas Höhlein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes