Qt strange behavior after i made it run as Admin
-
I making apps in Qt which by default runs as admin. So i've opened Qt manually as admin(Rightclick every time), but sometimes i forgot do that, and it require full reload of app, which not good.
So i rightclick on Qt icon and in Properties->Compatability set check-box "run always as admin", and now when i'm running Qt - all libraries except Qt can't be included(yellow line beneath words), and that strange kind of error which i have no idea why it appears:
-
@mrjj said in Qt strange behavior after i made it run as Admin:
If you create a new project, it still broken ?
Of course. It's a global bug, not related to the projects, in new project i also can't include anything what not related to Qt like Windows.h
Btw, this error i get when try build&run:
:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
-
@mrjj said in Qt strange behavior after i made it run as Admin:
I think they most easy fix is just to reinstall Qt.
Omg. With my low internet... It's 100% a bug, i already posted bug report but no replies yet. It should be like this, any user which change launch setting to Admin - will be condemned to redownload whole thing...
-
@Engelard most likely you messed up the access rights in the configuration directory. it's a well known problem in the Unix world when you change a file as root, then afterwards you cannot change it as normal user again.
Please have a look in c:\users<name>\AppData\Roaming\QtProject and check the access rights.
PS: report is here: https://bugreports.qt.io/browse/QTBUG-72217
Also, you should watch your words. YOU did something wrong, probably due to missing knowledge. Now you want to blame Qt for that?
There is a reason you should not work as Admin, and if you do, you should know what you're doing.
'nuf said
-
@aha_1980 said in Qt strange behavior after i made it run as Admin:
Also, you should watch your words. YOU did something wrong,
Lol? I just set app to run as admin, before it runs successfully if i run it manually, and i did simple ordinary for EVERY user thing - set it always run as admin, and it gives me the bug because of which i should redownload 10gb and you telling me that i did something wrong??? Try yourself that simple stuff and will see how you will act then.
@aha_1980 said in Qt strange behavior after i made it run as Admin:
Please have a look in c:\users<name>\AppData\Roaming\QtProject and check the access rights.
There two files and one huge folder(qtcreator), which exactly should have admin rights?
-
I made your steps, but it works without a problem. I clicked right on Qt Creator Icon, then I clicked Properties->Compatibility "run always as admin". I had made the same thing in my previous project and I didn't get these kind problems.
I did this new test in Windows 10 msvc2017_64 with windows.h. -
@Engelard said in Qt strange behavior after i made it run as Admin:
all libraries except Qt can't be included(yellow line beneath words), and that strange kind of error which i have no idea why it appears
In Qt Creator, check your settings for Compilers, Qt Versions, and Kits.
See the "Troubleshooting" section at https://1drv.ms/w/s!AnaQjhA33g0K0lkIZPVjfsWrcPSI
-
@CKurdu ok, i tried to do that again. Because i delete that Qt which i was using about half year(5.10.1), and downloaded new version(5.12), it all different, new colors of text(eg nice static members), alot of new warnings i get, like:
But i never touched that constructor declaration, it all was created by default Qt project template.
And of course no that BUG what i had yesterday with my 5.10.1 version, it was apparently fixed, but you can try it by download that old version if it still available and taste that bug by yourself. Also bug with error messages gone, so solution seems to be is - not staying with old versions(if they became old) and refresh whole framework sometimes, it affects positively whole thing.
-
@Engelard said in Qt strange behavior after i made it run as Admin:
Qt is a library.
What you see and apparently use is Qt Creator which is an IDE, they have different versions and lifecycle. Qt Creator uses Qt, but it does not oblige you to use the library yourself. Just to make that clear.
Qt 5.12 has (almost) nothing to do with Qt Creator 4.x. The fact that you can install the IDE from the maintenance tool is mere convenience provided by the Qt project, so we don't need to build Creator from source ourselves.@CKurdu said in Qt strange behavior after i made it run as Admin:
Qt 5.12 seems preview in my Maintenance tool. Maybe, it has problems.
It's a release candidate. Qt 5.12 hasn't been officially released yet.
-
@kshegunov said in Qt strange behavior after i made it run as Admin:
Qt 5.12 has (almost) nothing to do with Qt Creator 4.x. The fact that you can install the IDE from the maintenance tool is mere convenience provided by the Qt project, so we don't need to build Creator from source ourselves.
Nope, it's mandatory if you use the general online installer. You can only uncheck it by starting the tool from the command line with the no mandatory flag set. Or, if you compile qt yourself of course.