Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Add New..., Add Existing Files..., Add Existing Directory... all greyed out in a qMake project
Forum Updated to NodeBB v4.3 + New Features

Add New..., Add Existing Files..., Add Existing Directory... all greyed out in a qMake project

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
19 Posts 6 Posters 11.4k 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 Rlkcpo

    Yup I deleted the .user file (and all its clones) and that didn't seem to have any affect.

    I don't think its actually doing any work. All the processes seem to be running at idle. But at this point I don't want to rule out anything. It just seems highly unlikely that when using a managed make system (qMake) the IDE would ever block the ability of adding files to the project.

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

    @Rlkcpo

    Yup I deleted the .user file (and all its clones) and that didn't seem to have any affect.

    that (clones) sounds as if you opened the project with different Creator versions. that can indeed lead to corrupted compiler settings for the project. especially 'downgrades' seem problematic.

    Qt has to stay free or it will die.

    mrjjM 1 Reply Last reply
    3
    • aha_1980A aha_1980

      @Rlkcpo

      Yup I deleted the .user file (and all its clones) and that didn't seem to have any affect.

      that (clones) sounds as if you opened the project with different Creator versions. that can indeed lead to corrupted compiler settings for the project. especially 'downgrades' seem problematic.

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

      @aha_1980
      Oh good spotted. I totally missed the cloned part.

      1 Reply Last reply
      2
      • R Offline
        R Offline
        Rlkcpo
        wrote on last edited by
        #11

        I only have one version of creator. I assumed the clones were some function of the software. I end up with:

        project.pro.user
        project.pro.user.b34a037
        project.pro.user.a256d45
        etc

        This might be why I continue to lose my settings between sessions. (I end up having to delete everything in the ~/.config/ directory to clear it.)

        mrjjM aha_1980A 2 Replies Last reply
        0
        • R Rlkcpo

          I only have one version of creator. I assumed the clones were some function of the software. I end up with:

          project.pro.user
          project.pro.user.b34a037
          project.pro.user.a256d45
          etc

          This might be why I continue to lose my settings between sessions. (I end up having to delete everything in the ~/.config/ directory to clear it.)

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

          @Rlkcpo

          Hmm that is a bit odd then as it how it has multiple .user files.
          if you only use one Creator then im not sure what is going on then.
          and yes, a new .user file forgets all settings from the old.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rlkcpo
            wrote on last edited by
            #13

            Hmmm ok im going to mark this as unsolved again. It seems as if the problem is back and this time the compilers are not the problem. Again my ability to add files/directories is greyed out.

            I think maybe at this point im getting a bit disillusioned about Qt. I think there is some kind of link to a previously installed version of Qt on this work machine...but for the life of me I cannot find it to remove it.

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #14

              Hi
              I assume you on some linux?
              So this time when GREY happened, there was not extra .pro.user.xxxx files?

              Check the icon for Creator (in menu/bar) that it links to the right place.
              and not run qtchooser but directly links to qtcreator in the Qt install folder.

              Also change the theme in Creator so if another should popup you can spot in on colors.

              I assume you tried
              sudo updatedb
              locate qtcreator
              and found only one ?

              Also, you are not using same project from different user profiles ?

              R 1 Reply Last reply
              1
              • R Rlkcpo

                I only have one version of creator. I assumed the clones were some function of the software. I end up with:

                project.pro.user
                project.pro.user.b34a037
                project.pro.user.a256d45
                etc

                This might be why I continue to lose my settings between sessions. (I end up having to delete everything in the ~/.config/ directory to clear it.)

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

                Hi @Rlkcpo,

                I only have one version of creator. I assumed the clones were some function of the software. I end up with:
                project.pro.user
                project.pro.user.b34a037
                project.pro.user.a256d45

                Ok, these backups are not because of a different version, but because of a different Kit setup. Usually this happens if you open the project with Creators from different computers (e.g. if it is on a network share). It can also happen if you check in the *.pro.user into version control.

                This might be why I continue to lose my settings between sessions.

                No, it's rather other way round.

                (I end up having to delete everything in the ~/.config/ directory to clear it.)

                Ah-ha! This will possible change your kit settings and therefore the *.pro.user becomes invalid.

                The questions if rather, what makes your settings in the .config directory invalid? Today I had an effect that may be related. We had several Creator windows open and added a manual Qt version including debugger and compiler. We did save the setting, but it seems it was overwritten after the last Creator (which did not have this setting) was closed.

                So this is my tip: if you need to change Kit settings, have only one instance open and close it after you changed the setting. Then everything should be fine.

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • mrjjM mrjj

                  Hi
                  I assume you on some linux?
                  So this time when GREY happened, there was not extra .pro.user.xxxx files?

                  Check the icon for Creator (in menu/bar) that it links to the right place.
                  and not run qtchooser but directly links to qtcreator in the Qt install folder.

                  Also change the theme in Creator so if another should popup you can spot in on colors.

                  I assume you tried
                  sudo updatedb
                  locate qtcreator
                  and found only one ?

                  Also, you are not using same project from different user profiles ?

                  R Offline
                  R Offline
                  Rlkcpo
                  wrote on last edited by
                  #16

                  @mrjj said in Add New..., Add Existing Files..., Add Existing Directory... all greyed out in a qMake project:

                  Hi
                  I assume you on some linux?
                  So this time when GREY happened, there was not extra .pro.user.xxxx files?

                  Check the icon for Creator (in menu/bar) that it links to the right place.
                  and not run qtchooser but directly links to qtcreator in the Qt install folder.

                  Yes I am running Ubuntu 16.04 and the shortcut is linking to the correct qtcreator executable.

                  Also change the theme in Creator so if another should popup you can spot in on colors.

                  Yup been running the dark theme to quickly spot when this occurs.

                  I assume you tried
                  sudo updatedb
                  locate qtcreator
                  and found only one ?

                  Correct there is only one version.

                  Also, you are not using same project from different user profiles ?

                  Nope. Im the only one on this machine (for the time being).

                  1 Reply Last reply
                  0
                  • Y Offline
                    Y Offline
                    yugiquan
                    wrote on last edited by
                    #17

                    I have the same problem. The reason is use cmake (maybe you use cmake?? check it). I use qmake to fix it.

                    W 1 Reply Last reply
                    0
                    • Y yugiquan

                      I have the same problem. The reason is use cmake (maybe you use cmake?? check it). I use qmake to fix it.

                      W Offline
                      W Offline
                      weilu
                      wrote on last edited by
                      #18

                      Hi @yugiquan
                      How do you fix this problem?(I have the same question and use cmake)

                      N 1 Reply Last reply
                      0
                      • W weilu

                        Hi @yugiquan
                        How do you fix this problem?(I have the same question and use cmake)

                        N Offline
                        N Offline
                        Narek
                        wrote on last edited by
                        #19

                        @weiluI also ran into this problem. I couldn't find a solution to this problem. If you find one, could you explain it? I can add files manually through CMakeLists.txt, but I'd prefer to add them without it

                        1 Reply Last reply
                        0
                        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on

                        • Login

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