Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
Qt Creator 4.8.0
-
None
-
-
dfb6fbed7c2262ffb02dfe609c7a45aba48a98ac (qt-creator/qt-creator/master)
Description
- Right click on an open project in the Projects navigator and select Add New... (The New File wizard opens).
- Select C++ under Files and Classes and C++ Class in the second list view. Click the Choose button. (The C++ Class wizard opens)
- Enter a Class name, select <Custom> base class and enter an existing class name to inherit from.
It would be nice to have an "Add Q_OBJECT" checkbox. Then when the wizard completes, the Q_OBJECT macro is added to the header file appropriately.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-3855 include base class header when adding new class
- Closed
For Gerrit Dashboard: QTCREATORBUG-21810 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
266099,2 | "New Class" wizard: Add option for adding the Q_OBJECT macro | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |