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

    • Linux/Wayland
    • dbfd378f5 (10.0)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes