Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 10.0.0
-
None
-
-
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 |
474934,2 | Wizards: Fix "New Class" with QML_ELEMENT and no QQuickItem include | 10.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |