Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
My Qt creator broke ?
I was coding like usual, and at some point i just wanted to test what i did so i ran a "build" and "run", what happened then was quite surprising, i got close to a hundred of issues with up to 20 errors, but what was really surpising is that i could not understand those, i was having issues with QObject itself.
From "class 'QObject' is implicitly friends with itself" to "redefinition of 'class QObject'", after a while trying to figure out what evil deed i may have done, i just closed everything and created a new project, but nothing is working anymore, new projects can't even recognize what a "QWidget" is.
I am at a loss here, should i just uninstall and reinstall Qt Creator ? how is that even possible in the first place to break everything like that without doing anything else but use the software.
I didn't change anything, i was just coding.
I will be guessed from your comment, it may be something wrong with QtCreator's setting.
The kit's configuration perhaps may be broken.
If you possible to get additional information on the below screenshot, I and a community member may be able to give advice.
Screen transition : in menu bar "Tools" -> "Options..."
-> "Kits" of left Options Tab ：
Additional information screenshot
- Kits tab
- Qt Versions
Alright thanks for answering, i am posting a series of screenshot here:
What i don't understand is that minutes before everything was working fine, i had used "build" and "run" at least a dozen of times already at that point, and out of nowhere everything broke.
If i create a new project, here is what i get:
And if i try to build, i get lists of errors, warnings etc.:
kenchan last edited by
I suggest you blow away your build folder, re-run qmake and rebuild the project to see if things get better.
I did that already, but like i said, even a brand new project won't work now, it is not limited to projects already existing.
Kits setting look correct.
I would like check that your Qt headers haven't been modified by replace etc ...
Well it seems like some files have been modified, is there a way to get them back without re-downloading everything ?
It seems like i just need the includes files, at least i want to try with that before anything else.
@reonZ well, you could pick rhe files from a source download like http://download.qt.io/official_releases/qt/5.11/5.11.2/single/qt-everywhere-src-5.11.2.zip
but probably its easier to remove + reinstall Qt 5.11.2 with the online installer/maintenance tool
As for the damage: Did you do a Rename Usages before that could have effected the Qt headers?
I believe that i must have done a rename that modified a bunch of source files, i would never have imagined that the source files could be modified like that from inside the editor itself, how come is that even possible ? why are they not read only or just protected ?
@reonZ , I'm glad that the problem seems to be solved.
In this case, it may be difficult to make the read-only installed file at the usability of the Qt Maintenance Tool.
In my case, I will press F1 before opening the library code, I open help documents and check the API :)
@KazuoAsano Yeah at least now i am fine with re-installing everything, because i know what the problem was and how to avoid it in the future.
Also doing so i realized that there was a 5.12 version which makes it "convenient" to change now.
I'm glad you fixed it. Nevertheless, your suggestion to make the files read-only is very good.
I created QTBUG-72766 to track that.
i have done it twice ... Until i learned to always check affected files. ;)
@mrjj Then please vote for the bug :)
@aha_1980 I voted