Solved My Qt creator broke ?
-
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
- Compilers
-
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.:
-
@reonZ
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 ...
v5.11.2 code
QMainWindow.h:
http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/widgets/qmainwindow.h?h=v5.11.2QWidget.h:
http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/kernel/qwidget.h?h=v5.11.2QObject.h:
http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qobject.h?h=v5.11.2 -
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.
-
Hi @reonZ,
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.
Regards
-
@aha_1980
i have done it twice ... Until i learned to always check affected files. ;) -
@mrjj Then please vote for the bug :)
-
@aha_1980 I voted