How to change / configure the desired compiler in the Qt creator? i.e. between MSVC / Mingw or g ++ / clang ++

I know about how to add a compiler to Qt Creator . However, my Qt always chooses the MSVC compiler. How to install MinGW (internal or external) instead of MSVC?

Could not find a message that could help beginners find out how to change the compiler of the desired preference. My current system is Windows, however Linux information (g ++ ↔ clang ++) is also welcome.

+4
source share
1 answer

Below is the path with Qt 5.9:

  • When setting up a new project, select only those compilers / sets that are required;
  • 64- MinGW ; MinGW64 "posix threads", "win32 threads", , .
  • Tools > Options > Build & Run > Compilers ++. C:/MinGW64/bin/g++.exe ( "MinGW64" ); C C:/MinGW64/bin/gcc.exe; ""
  • Debuggers C:/MinGW64/bin/gdb.exe ( " MinGW64" ), ""
  • Qt Versions MinGW64; qmake.exe ; , qmake.exe, 32- MinGW Qt- ( )
  • Kits Manual kit; MinGW32 ; Compiler, Debugger Qt Version ; ""
  • Qt "" "Build and Run"; , , ; "" "" "".
+3

Source: https://habr.com/ru/post/1678328/


All Articles