Install Qt on Windows with MSYS2

Launch MSYS2 UCRT64 from your Windows Start menu.

Note: MSYS2 recommends the UCRT64 environment for standard C++ Windows development. If you need the legacy MSVCRT runtime, open MINGW64 instead and replace ucrt-x86_64 with x86_64 in the package names below.

pacman -Syu
pacman -S --needed mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja
# Core Qt6 base libraries
pacman -S mingw-w64-ucrt-x86_64-qt6-base

# Additional Qt6 tools (Qt Designer, Assistant, Linguist)
pacman -S mingw-w64-ucrt-x86_64-qt6-tools
pacman -S mingw-w64-ucrt-x86_64-qt-creator