Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt strange behavior after i made it run as Admin
Forum Updated to NodeBB v4.3 + New Features

Qt strange behavior after i made it run as Admin

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 8 Posters 2.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • EngelardE Offline
    EngelardE Offline
    Engelard
    wrote on last edited by Engelard
    #1

    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:

    0_1543687609569_damnqtagain.jpg

    JKSHJ 1 Reply Last reply
    0
    • EngelardE Offline
      EngelardE Offline
      Engelard
      wrote on last edited by Engelard
      #2

      UPDATE:

      I restore Qt application to default(not Admin by default), and still have same errors. Now Qt is totally broken and i don't know what to do...

      mrjjM 1 Reply Last reply
      0
      • EngelardE Engelard

        UPDATE:

        I restore Qt application to default(not Admin by default), and still have same errors. Now Qt is totally broken and i don't know what to do...

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Engelard
        Hi
        If you create a new project, it still broken ?

        EngelardE 1 Reply Last reply
        0
        • mrjjM mrjj

          @Engelard
          Hi
          If you create a new project, it still broken ?

          EngelardE Offline
          EngelardE Offline
          Engelard
          wrote on last edited by
          #4

          @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.

          mrjjM 1 Reply Last reply
          0
          • EngelardE Engelard

            @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.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Engelard
            I think some how the kits got messed up.
            Is compiler and debugger still filled out ?

            I think they most easy fix is just to reinstall Qt.

            EngelardE 1 Reply Last reply
            1
            • mrjjM mrjj

              @Engelard
              I think some how the kits got messed up.
              Is compiler and debugger still filled out ?

              I think they most easy fix is just to reinstall Qt.

              EngelardE Offline
              EngelardE Offline
              Engelard
              wrote on last edited by
              #6

              @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...

              aha_1980A 1 Reply Last reply
              0
              • EngelardE Engelard

                @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...

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by aha_1980
                #7

                @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

                Qt has to stay free or it will die.

                EngelardE 1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @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

                  EngelardE Offline
                  EngelardE Offline
                  Engelard
                  wrote on last edited by Engelard
                  #8

                  @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?

                  1 Reply Last reply
                  0
                  • EngelardE Offline
                    EngelardE Offline
                    Engelard
                    wrote on last edited by
                    #9

                    Sorry everyone, this topic should be closed, i'm only lately realised that it must be posted only at bugreport since it is pure bug.

                    K 1 Reply Last reply
                    0
                    • EngelardE Engelard

                      Sorry everyone, this topic should be closed, i'm only lately realised that it must be posted only at bugreport since it is pure bug.

                      K Offline
                      K Offline
                      kenchan
                      wrote on last edited by
                      #10

                      @Engelard
                      if you do file a Qt bug report please do report the bug number back here. I am interested to to see how the developers follow up on that.
                      Thanks.

                      1 Reply Last reply
                      0
                      • CKurduC Offline
                        CKurduC Offline
                        CKurdu
                        wrote on last edited by
                        #11

                        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.

                        You reap what you sow it

                        EngelardE 1 Reply Last reply
                        6
                        • EngelardE Engelard

                          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:

                          0_1543687609569_damnqtagain.jpg

                          JKSHJ Offline
                          JKSHJ Offline
                          JKSH
                          Moderators
                          wrote on last edited by
                          #12

                          @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

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          1 Reply Last reply
                          2
                          • CKurduC CKurdu

                            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.

                            EngelardE Offline
                            EngelardE Offline
                            Engelard
                            wrote on last edited by Engelard
                            #13

                            @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:

                            0_1543784627131_newWarnings.jpg

                            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.

                            CKurduC kshegunovK 2 Replies Last reply
                            0
                            • EngelardE Engelard

                              @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:

                              0_1543784627131_newWarnings.jpg

                              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.

                              CKurduC Offline
                              CKurduC Offline
                              CKurdu
                              wrote on last edited by
                              #14

                              @Engelard
                              Hi,
                              I have already made my test in Qt 5.10.1. Qt 5.12 seems preview in my Maintenance tool. Maybe, it has problems.

                              You reap what you sow it

                              1 Reply Last reply
                              0
                              • EngelardE Engelard

                                @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:

                                0_1543784627131_newWarnings.jpg

                                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.

                                kshegunovK Offline
                                kshegunovK Offline
                                kshegunov
                                Moderators
                                wrote on last edited by
                                #15

                                @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.

                                Read and abide by the Qt Code of Conduct

                                J.HilkJ 1 Reply Last reply
                                4
                                • kshegunovK kshegunov

                                  @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.

                                  J.HilkJ Offline
                                  J.HilkJ Offline
                                  J.Hilk
                                  Moderators
                                  wrote on last edited by J.Hilk
                                  #16

                                  @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.


                                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                  Q: What's that?
                                  A: It's blue light.
                                  Q: What does it do?
                                  A: It turns blue.

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved