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. My Qt creator broke ?
Forum Updated to NodeBB v4.3 + New Features

My Qt creator broke ?

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 5 Posters 2.9k Views 3 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.
  • R Offline
    R Offline
    reonZ
    wrote on last edited by reonZ
    #1

    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.

    1 Reply Last reply
    0
    • KazuoAsanoK Offline
      KazuoAsanoK Offline
      KazuoAsano
      Qt Champions 2018
      wrote on last edited by
      #2

      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
      R 1 Reply Last reply
      2
      • KazuoAsanoK KazuoAsano

        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
        R Offline
        R Offline
        reonZ
        wrote on last edited by reonZ
        #3

        @KazuoAsano

        Alright thanks for answering, i am posting a series of screenshot here:

        Kits
        Qt Versions
        Qt Version (rest)
        Compilers

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

        And if i try to build, i get lists of errors, warnings etc.:
        build

        K 1 Reply Last reply
        0
        • R reonZ

          @KazuoAsano

          Alright thanks for answering, i am posting a series of screenshot here:

          Kits
          Qt Versions
          Qt Version (rest)
          Compilers

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

          And if i try to build, i get lists of errors, warnings etc.:
          build

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

          @reonZ
          I suggest you blow away your build folder, re-run qmake and rebuild the project to see if things get better.

          R 1 Reply Last reply
          0
          • K kenchan

            @reonZ
            I suggest you blow away your build folder, re-run qmake and rebuild the project to see if things get better.

            R Offline
            R Offline
            reonZ
            wrote on last edited by
            #5

            @kenchan

            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.

            1 Reply Last reply
            0
            • KazuoAsanoK Offline
              KazuoAsanoK Offline
              KazuoAsano
              Qt Champions 2018
              wrote on last edited by
              #6

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

              QWidget.h:
              http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/kernel/qwidget.h?h=v5.11.2

              QObject.h:
              http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qobject.h?h=v5.11.2

              R 1 Reply Last reply
              2
              • KazuoAsanoK KazuoAsano

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

                QWidget.h:
                http://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/kernel/qwidget.h?h=v5.11.2

                QObject.h:
                http://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qobject.h?h=v5.11.2

                R Offline
                R Offline
                reonZ
                wrote on last edited by reonZ
                #7

                @KazuoAsano

                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.

                aha_1980A 1 Reply Last reply
                0
                • R reonZ

                  @KazuoAsano

                  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.

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

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

                  Qt has to stay free or it will die.

                  R 1 Reply Last reply
                  2
                  • aha_1980A aha_1980

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

                    R Offline
                    R Offline
                    reonZ
                    wrote on last edited by reonZ
                    #9

                    @aha_1980

                    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 ?

                    1 Reply Last reply
                    0
                    • KazuoAsanoK Offline
                      KazuoAsanoK Offline
                      KazuoAsano
                      Qt Champions 2018
                      wrote on last edited by
                      #10

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

                      R 1 Reply Last reply
                      0
                      • KazuoAsanoK KazuoAsano

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

                        R Offline
                        R Offline
                        reonZ
                        wrote on last edited by
                        #11

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

                        aha_1980A 1 Reply Last reply
                        1
                        • R reonZ

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

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

                          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

                          Qt has to stay free or it will die.

                          mrjjM 1 Reply Last reply
                          4
                          • aha_1980A aha_1980

                            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

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

                            @aha_1980
                            i have done it twice ... Until i learned to always check affected files. ;)

                            aha_1980A 1 Reply Last reply
                            0
                            • mrjjM mrjj

                              @aha_1980
                              i have done it twice ... Until i learned to always check affected files. ;)

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

                              @mrjj Then please vote for the bug :)

                              Qt has to stay free or it will die.

                              R 1 Reply Last reply
                              2
                              • aha_1980A aha_1980

                                @mrjj Then please vote for the bug :)

                                R Offline
                                R Offline
                                reonZ
                                wrote on last edited by
                                #15

                                @aha_1980 I voted

                                1 Reply Last reply
                                1

                                • Login

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