Qt

Qt is a cross-platform application development framework that allows developers to create high-performance, scalable, and portable applications. It provides a set of libraries and tools for various aspects such as GUI, networking, and databases. Qt also has an easy-to-use integrated development environment (IDE) called Qt Creator, which helps developers to develop and debug Qt applications more quickly.

  1. Qt’s official website

  2. Qt documentation

  3. QT Series Link Compilation

  4. Qt 6.3.1 C++ GUI Development Tutorial

  5. Qt6+windeployqt Series Link Compilation

  6. QMYSQL driver 6.6.1

  7. 《Qt 5.9 C++开发指南》2021 完整版

  8. Qt6.3.1 C++ GUI开发教程(完整版)

Building from source (Qt6/CMake)

set PATH=%PATH%;C:\Qt\Tools\CMake_64\bin;C:\Qt\Tools\Ninja
C:
cd C:\Qt\6.6.0\Src\qtbase\src\plugins\sqldrivers
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
call C:\Qt\6.6.0\msvc2019_64\bin\qt-cmake.bat -G "Ninja Multi-Config" . -DMySQL_INCLUDE_DIR="E:\qt_creator\libs\libmysql\include" -DMySQL_LIBRARY="E:\qt_creator\libs\libmysql\lib\libmysql.lib" -DCMAKE_INSTALL_PREFIX="C:\Qt\6.6.0\msvc2019_64" -DCMAKE_CONFIGURATION_TYPES=Release;Debug
ninja
ninja install
pause

Install Qt by MaintenanceTool.exe

MaintenanceTool.exe

View QT version number

./qmake -v
results:
PS C:\local\Qt\6.6.1\msvc2019_64\bin> ./qmake -v
QMake version 3.1
Using Qt version 6.6.1 in C:/local/Qt/6.6.1/msvc2019_64/lib