Details
-
Bug
-
Resolution: Done
-
P4: Low
-
Qt Creator 4.9.0-beta1
-
Ubuntu 18.04 LTS 64 bit
Windows 10 1809 64 bit
-
1487997551fb982d6c2c9a95b6ff43cfad5ddbcf (qt-creator/qt-creator/4.9)
Description
- Start creating a new Qt plugin using "File" -> "New File or Project..." -> "Library" -> "C++ Library".
- On the first page of the wizard, select "Qt Plugin" from the combo box.
- Finish the wizard using defaults.
- Open the created *.cpp file.
You'll see the line:QObject * GenericPlugin::create(const QString &name, const QString &spec)
There should not be a white space after the "*", so the line should be:
QObject *GenericPlugin::create(const QString &name, const QString &spec)
Found while updating Squish test tst_APTW03.
Creator 4.8 does not create the line automatically, but only through "Insert Virtual Functions of Base Classes". Then, it creates the line correctly, without the wrong white space.