Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt not working properly... ( compiler problems ? )
So i downloaded Qt for the first time and this are all the things i downloaded:
Then i create a project and this is what i get:
All other .cpp files such as main and mainwindow should be shown on the left side and they are not. I cant even compile the code, errors are everywhere...
I was wondering do i have to do something in here ? :
Please can someone help me!! i have to make a simple game using Qt...
Hi and welcome to the forums
Oh, you install all of it. :)
Dont select the top one only. open it and select only one or more Qt prebuilds.
Installing ALL of it is very rarely needed and take up huge amount of space.
If you just want to make a desktop app/game then only select
mingw comes with compiler and debugger.
Anything named visual studio, requires you to download and installer compiler and debugger on your own.
So i remove everything except the Qt 5.12.1 ?
well depends on what you want to build.
If YES to normal Desktop type of program ( like a desktop game) then you should only install
the Mingw shown in image. That way, it should just work. without further setup.
If i wanted to make games for mobile devices ( android ), is that possible ? and if it is which "kits" do i have to include/install ?
In that case, it would be good to start here and read it carefully.
As there are more things you must install on your own.
you will also need one of the arm Qt prebuilds also.
I did as suggested and its still not working. I tried creating a project again and same thing happened :(
and you did install the mingw this time ?
It seems the project is un configured so either no kits was shown to you or
you didnt select one.
what did it show in Kit selection when you made the project ?
removed everything but kept mingw ye
( i have to wait 600s to reply -.- )
and you select that kit and press next ?
It should not say unconfigured at the "screen" button then.
yeah i did that and it brought me to the picture i sent before:
should i reinstall Qt ?
well something did went wrong.
Could you please first remove all of Qt.
and then install the mingw Qt packet.
We could also try fiddling with the kits but
often a reinstall is faster if you have ok internet.
EvanZ last edited by
I had recently problems when installing Qt. So I wrote a mini-list of what to do after completely uninstalling Qt, if it can help you:
When installing Qt, select:
a. the latest version of Qt
b. the latest compiler version. Choose the MinGW compiler and select the MinGW kit, but not all the MSCV kits.
c. the latest framework version
d. a debugger is selected by default
When creating a new project, if necessary, unblock the firewalls of your antivirus.
When creating a new project, if necessary, go to tools->options and select the kit corresponding to the compiler (show the pathway).
i uninstalled Qt and installed it again and i installed all of these packages :
Tried creating a project again...still same thing....
about the tools->options thingy, what do i do, do i press on Desktop Qt 5.12.1 MinGW and press add ? :
And another thing, when i try opening projects i get this:
If you over over the yellow warning sign, you'll have more information about what is wrong.
You should also check the Compilers panel.
That is really odd. normally mingw just works,
Do you have any other version of mingw installed ?
Do you have Avast virus scanner installed ?
i used this program before cause i was coding in CodeBlocks ( because it didn't detect my compiler ):
This is what the yellow warning says:
Looks like you are trying to use a 32bit build of MinGW for a 64bit build of Qt.
Yep, thank you for realizing that !!!
it was set for this : F:\Qt\Tools\mingw730_32\bin\g++.exe
so i changed it to this: F:\Qt\Tools\mingw730_64\bin\g++.exe
now it's working fine :D
I just want to say thank you to all of you for helping me out !!!
Now i can try and make a game :D
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)