Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 4.13.0-beta1
-
None
-
d8be2491a (master)
Description
When adding a new form class to a CMake project, you'll get this dialog box:
I just talked with a beginner who had apparently checked the "always copy paths" checkbox and then forgot about it, which led to a lot of confusion for them when they started getting linker errors due to the constructor not being defined, since the .cpp file wasn't being included.
As far as I remember this (adding files to the project file for the user) worked fine with qmake and so it should work with CMake too.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-27315 Qt Creator 7.0.0 does not add New File (C++ Class) to project automatically
-
- Closed
-
- relates to
-
QTCREATORBUG-28904 New QML files added to Qt Quick project aren't added to CMakeLists.txt
-
- Closed
-
-
QTCREATORBUG-24301 Copy all file names when adding Form Class
-
- Closed
-
-
QTCREATORBUG-28493 Allow adding files to cmake project
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-26006 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
470736,9 | CMakePM: Add new / existing source files to project | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |