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. About adding an existing folder in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

About adding an existing folder in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
17 Posts 4 Posters 2.6k Views 1 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.
  • jsulmJ jsulm

    @mulfycrowh said in About adding an existing folder in Qt Creator:

    These subfolders include files

    Add those files to your project.

    M Offline
    M Offline
    mulfycrowh
    wrote on last edited by
    #3

    @jsulm Thanks for reply.
    I made a sample.
    Under Resources, I created the folder "labels".
    Under "labels", I created the folder "test".
    In the folder "test", I created the subfolders "test1", "test2" and "test3".
    In each of these subfolders "test1", "test2", "test3", there is one png file.
    I added the file located in "test1" to the project.
    Here is the screenshot what I get.
    I don't agree because when I click on the small right arrow, I get the file and not the tree structure.

    jsulmJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @mulfycrowh said in About adding an existing folder in Qt Creator:

      These subfolders include files

      Add those files to your project.

      M Offline
      M Offline
      mulfycrowh
      wrote on last edited by
      #4

      @jsulm Screenshot:

      Resources
      demo
      fonts
      labels/test/test1

      1 Reply Last reply
      0
      • M mulfycrowh

        @jsulm Thanks for reply.
        I made a sample.
        Under Resources, I created the folder "labels".
        Under "labels", I created the folder "test".
        In the folder "test", I created the subfolders "test1", "test2" and "test3".
        In each of these subfolders "test1", "test2", "test3", there is one png file.
        I added the file located in "test1" to the project.
        Here is the screenshot what I get.
        I don't agree because when I click on the small right arrow, I get the file and not the tree structure.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #5

        @mulfycrowh said in About adding an existing folder in Qt Creator:

        Here is the screenshot what I get.

        I can't see it.
        Also, you did not mention that you are trying to add resource files.
        As shown here https://doc.qt.io/qt-5/resources.html you can have subfolders:

        <!DOCTYPE RCC><RCC version="1.0">
        <qresource>
            <file>images/copy.png</file>
            <file>images/cut.png</file>
            <file>images/new.png</file>
            <file>images/open.png</file>
            <file>images/paste.png</file>
            <file>images/save.png</file>
        </qresource>
        </RCC>
        

        Here "images" is a subfolder.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        1
        • jsulmJ jsulm

          @mulfycrowh said in About adding an existing folder in Qt Creator:

          Here is the screenshot what I get.

          I can't see it.
          Also, you did not mention that you are trying to add resource files.
          As shown here https://doc.qt.io/qt-5/resources.html you can have subfolders:

          <!DOCTYPE RCC><RCC version="1.0">
          <qresource>
              <file>images/copy.png</file>
              <file>images/cut.png</file>
              <file>images/new.png</file>
              <file>images/open.png</file>
              <file>images/paste.png</file>
              <file>images/save.png</file>
          </qresource>
          </RCC>
          

          Here "images" is a subfolder.

          M Offline
          M Offline
          mulfycrowh
          wrote on last edited by
          #6

          @jsulm How do I share a picture?

          jsulmJ 1 Reply Last reply
          0
          • M mulfycrowh

            @jsulm How do I share a picture?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @mulfycrowh You can post it to some file sharing service and post the link here.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            0
            • jsulmJ jsulm

              @mulfycrowh You can post it to some file sharing service and post the link here.

              M Offline
              M Offline
              mulfycrowh
              wrote on last edited by
              #8

              @jsulm OK:

              https://ibb.co/f4T2p8s

              jsulmJ 1 Reply Last reply
              0
              • M mulfycrowh

                @jsulm OK:

                https://ibb.co/f4T2p8s

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @mulfycrowh How does your resource file look like?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                M 2 Replies Last reply
                0
                • jsulmJ jsulm

                  @mulfycrowh How does your resource file look like?

                  M Offline
                  M Offline
                  mulfycrowh
                  wrote on last edited by
                  #10

                  @jsulm At the end of the file, I have a big plus sign and beside: "Resources/labels/test/test1/add_80_4k.png

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @mulfycrowh How does your resource file look like?

                    M Offline
                    M Offline
                    mulfycrowh
                    wrote on last edited by
                    #11

                    @jsulm As far I understand you cannot see the tree structure of a folder (or subfolder) that doesn't have any file in it. Right?

                    JonBJ 1 Reply Last reply
                    0
                    • M mulfycrowh

                      @jsulm As far I understand you cannot see the tree structure of a folder (or subfolder) that doesn't have any file in it. Right?

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #12

                      @mulfycrowh
                      As far as I know that is correct. Same in e.g. git, and others.

                      M 1 Reply Last reply
                      0
                      • JonBJ JonB

                        @mulfycrowh
                        As far as I know that is correct. Same in e.g. git, and others.

                        M Offline
                        M Offline
                        mulfycrowh
                        wrote on last edited by
                        #13

                        @JonB That's a very weird way to manage folders and subfolders...

                        JonBJ mrjjM 2 Replies Last reply
                        0
                        • M mulfycrowh

                          @JonB That's a very weird way to manage folders and subfolders...

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by
                          #14

                          @mulfycrowh
                          In git too you mean? That does not let you checkin an empty folder/directory (AFAIK). Same I think for Visual Studio, it only really deals with files in a project.

                          M 1 Reply Last reply
                          0
                          • JonBJ JonB

                            @mulfycrowh
                            In git too you mean? That does not let you checkin an empty folder/directory (AFAIK). Same I think for Visual Studio, it only really deals with files in a project.

                            M Offline
                            M Offline
                            mulfycrowh
                            wrote on last edited by
                            #15

                            @JonB I am speaking about Qt Creator

                            1 Reply Last reply
                            0
                            • M mulfycrowh

                              @JonB That's a very weird way to manage folders and subfolders...

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

                              @mulfycrowh

                              Hi.
                              Im not sure what the weird part is?
                              It will show the tree of folders

                              alt text

                              However, you cant add empty folders to a res file, as that would be pointless as
                              you cannot write new files to it so would really not be useful for image/icons management. :)

                              M 1 Reply Last reply
                              0
                              • mrjjM mrjj

                                @mulfycrowh

                                Hi.
                                Im not sure what the weird part is?
                                It will show the tree of folders

                                alt text

                                However, you cant add empty folders to a res file, as that would be pointless as
                                you cannot write new files to it so would really not be useful for image/icons management. :)

                                M Offline
                                M Offline
                                mulfycrowh
                                wrote on last edited by
                                #17

                                @mrjj Hi. The interesting case is when a folder contains a subfolder with files but without any file in it.
                                I say that‘s weird because The folder management is completely different from Windows. In Windows you can have folders with subfolders with files and no file in these folders..

                                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