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

new file dialog for c++ class: invalid template when using QML_ELEMENT

    XMLWordPrintable

Details

    • Linux/Wayland
    • dbfd378f5 (10.0)

    Description

      When creating a new c++ class using the UI, With:

      • base class QObject
      • Add Q_OBJECT checked
      • Add QML_ELEMENT checked

      The generated code is invalid:

       

      #include <QQmlEngine> is missing.

      Indentation is invalid.

      When using the QQuickItem base class and letting the default, indentation is also invalid but as QQuickItem is included the code compiles.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-29092
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            qdel Deldycke Quentin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes