This was working with QT 6.5.2, it might not work with newer versions of QT.
First of all make sure to download QT and put qmake, mingw32-make and g++ in the PATH environmental variable.
Follow these steps to compile our application and obtain the .exe file :
qmake6 -project QT+=widgetsCreates the .pro file (filename is that of the parent folder's name)qmake6Create the MakeFile, it will display a few warnings: that's ok, ignore themmingw32-makeExecutes the MakeFile, compiling .cpp files and linking the QT signals to their slots, using MOCcd releaseThis project creates the build files in the 'release' folderwindeployqt.exe [namefile].exeDeploy the application for Windows, namefile will be the same as the name of the .pro file generated at step 1
First of all make sure to install qt6-base-dev, qt6-base-dev-tools, g++ and make using 'sudo apt install'.
Follow these steps to compile our application and obtain the .out file :
qmake6 -project QT+=widgetsCreates the .pro file (filename is that of the parent folder's name)qmake6Create the MakeFile, it will display a few warnings: that's ok, ignore themmakeExecutes the MakeFile, compiling .cpp files and linking the QT signals to their slots, using MOC, and deploys the x-executable file (name like name of .pro file)
In case of a pc without QT installed (Qt libraries not on PATH), the executive file needs the Qt library files (.dll files) : for portability you have to copy them along with the executive file.
Once built the project, inside the 'release' folder there will be the .exe file, that can be run as a normal application, for example by double clicking.
Once built the project, in the main folder, we will find a mess of files, between those we can find the x-executable application, that can be run as a normal application, using ./[name file].
There is a python script for the clean-up: clean-script.py.
Be careful that this script also removes the build folder, containing the .exe (or .out in Linux).
P.S. : I will probably do bash and bat versions soon