Sample QtWidgets application (+extras):
- C++ 17, Qt5.15, CMake, CCache
- Main and About window
- Embedded Qt resource (QRC)
- static utils class
- Config directory + config file
See also:
- Qt5 QtWidgets template (this): qt5-widgets-cmake-hello-world
- Qt5 QML template: qt5-qml-cmake-hello-world
- Qt5 Widgets + QML template: qt5-widgets-qml-cmake-hello-world
To build, run:
cmake -Bbuild .
make -Cbuild -j4
And if you have Qt installed in a custom directory, use this CMake command instead:
cmake -DCMAKE_PREFIX_PATH="/home/user/qt5.15/gcc_64" -Bbuild .
Which will produce the dynamically linked executable build/bin/hello