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, episode 3
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 1.5k Views
  • 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.
  • O Offline
    O Offline
    oin-oin
    wrote on last edited by oin-oin
    #1

    Re: [Add New...](Add Existing Files...)

    Is there anything new under the sun ?

    I just downloaded a binary installation for qt, and ran the installation. Here's what the "About" says:

    Qt Creator 7.0.2
    Based on Qt 6.2.3 (Clang 13.0 (Apple), 64 bit)
    
    Built on May 23 2022 01:27:08
    
    From revision ac1e86fe74
    

    Started a band new project, and I want to add some existing files. Like many others apparently, Add Existing... are all grayed out.

    This is a continuation from "episode 2", which can be found here: https://forum.qt.io/topic/104597/add-new-add-existing-files-add-existing-directory-all-greyed-out-in-a-qmake-project-episode-2/2

    The only (and I mean only) change from the plain version is my adding the beautifier plugin. Can't believe that that would be the problem, particularly since if I configure qt creator to not load it, the problem persists.

    Would be nice if this was fixed.

    Reported this bug: https://bugreports.qt.io/browse/QTCREATORBUG-27891

    J.HilkJ 1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Would be nice if this was fixed.

      What is the bug number you reported this under?

      O 1 Reply Last reply
      0
      • C ChrisW67

        Would be nice if this was fixed.

        What is the bug number you reported this under?

        O Offline
        O Offline
        oin-oin
        wrote on last edited by
        #3

        @ChrisW67 My sincere apologies, I imagined that this bug had been reported by others before. I will make a bug report and post it here as soon as I have done so.

        1 Reply Last reply
        0
        • O oin-oin

          Re: [Add New...](Add Existing Files...)

          Is there anything new under the sun ?

          I just downloaded a binary installation for qt, and ran the installation. Here's what the "About" says:

          Qt Creator 7.0.2
          Based on Qt 6.2.3 (Clang 13.0 (Apple), 64 bit)
          
          Built on May 23 2022 01:27:08
          
          From revision ac1e86fe74
          

          Started a band new project, and I want to add some existing files. Like many others apparently, Add Existing... are all grayed out.

          This is a continuation from "episode 2", which can be found here: https://forum.qt.io/topic/104597/add-new-add-existing-files-add-existing-directory-all-greyed-out-in-a-qmake-project-episode-2/2

          The only (and I mean only) change from the plain version is my adding the beautifier plugin. Can't believe that that would be the problem, particularly since if I configure qt creator to not load it, the problem persists.

          Would be nice if this was fixed.

          Reported this bug: https://bugreports.qt.io/browse/QTCREATORBUG-27891

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

          @oin-oin so, same as the old topic :D

          have you selected and configured a correct and working kit for your new project ?

          I think it will remain greyed out, until you have that set up correctly


          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.

          O 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @oin-oin so, same as the old topic :D

            have you selected and configured a correct and working kit for your new project ?

            I think it will remain greyed out, until you have that set up correctly

            O Offline
            O Offline
            oin-oin
            wrote on last edited by
            #5

            @J-Hilk Thanks for the suggestion. I think everything is configured ok (at least nothing is complaining, as far as I can see).

            What would the warning signs look like ? What should I look out for ? (Yes, I am a qt newbie). The only complaint I see is a warning about not selecting an ios device, but I'm not building for ios, my CMAKE_OSX_DEPLOYMENT_TARGET is 10.14. I did leave the CMAKE_OSX_ARCHITECTURES field empty, not really knowing what to put there.

            J.HilkJ 1 Reply Last reply
            0
            • O oin-oin

              @J-Hilk Thanks for the suggestion. I think everything is configured ok (at least nothing is complaining, as far as I can see).

              What would the warning signs look like ? What should I look out for ? (Yes, I am a qt newbie). The only complaint I see is a warning about not selecting an ios device, but I'm not building for ios, my CMAKE_OSX_DEPLOYMENT_TARGET is 10.14. I did leave the CMAKE_OSX_ARCHITECTURES field empty, not really knowing what to put there.

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

              @oin-oin ah cmake!

              should have asked about that from the beginning.

              QtCreator does not support adding files to cmake projects via the wizards. IIRC that is due to the way cmake is working. There is no one right way to add files, so QtC doesn't do it automatically.

              You will have to add them manually in the CmakeList.txt

              see here:
              https://forum.qt.io/topic/134251/how-to-add-existing-files-to-a-cmake-project


              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.

              O 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @oin-oin ah cmake!

                should have asked about that from the beginning.

                QtCreator does not support adding files to cmake projects via the wizards. IIRC that is due to the way cmake is working. There is no one right way to add files, so QtC doesn't do it automatically.

                You will have to add them manually in the CmakeList.txt

                see here:
                https://forum.qt.io/topic/134251/how-to-add-existing-files-to-a-cmake-project

                O Offline
                O Offline
                oin-oin
                wrote on last edited by
                #7

                @J-Hilk OK, thank you for the clarification, and sorry about the qmake/cmake mixup.

                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