Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
5 October 2022
For a while I've cursed what I believed was a bug in Qt Creator - well until I filed a bug report and realized it was a feature not a bug!
What I'm talking about is rename symbols and grep in Qt creator, which didn't find all occurrences.
Turned out I had to add all the header files to CMakeLists.txt for it to work
Learn about the details here and how you fix your own CMakeLists.txt files.
0:00 Intro
0:19 Description of the "bug"
0:43 The "bug" in action
1:55 Same thing in Qt Creator version 5
2:30 That's not a bug that's a feature!
4:25 Now adding the header files to CMake.
5:42 .ui files in the add_library line
7:13 Adding all the .h files to my CMakeLists.txt file
8:00 update-CMakeFiles.sh
9:16 find-unreferenced.sh
11:26 Multi cursor input
13:24 Feature request
14:10 Risk of getting confused
14:38 Note for KDE users
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/qt-creator-grep
Links:
* The Qt Creator 6 release notes: https://www.qt.io/blog/qt-creator-6-released
* The Qt Creator 7 release notes: https://www.qt.io/blog/qt-creator-7-released
* The Qt Creator 8 release notes: https://www.qt.io/blog/qt-creator-8-released
* Issue with CMake and Ninja on ui files: https://gitlab.kitware.com/cmake/cmake/-/issues/16776
* qt_wrap_ui https://doc.qt.io/qt-6/qt-wrap-ui.html
Episode on block editing in Qt Creator: https://youtu.be/Of-SfIzNARU?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more