About adding an existing folder in Qt Creator
-
Hi everyone,
Is it possible to add an existing folder to the project when this folder doesn‘t have any file. but only subfolders? These subfolders include files.
Thanks for help -
Hi everyone,
Is it possible to add an existing folder to the project when this folder doesn‘t have any file. but only subfolders? These subfolders include files.
Thanks for help@mulfycrowh said in About adding an existing folder in Qt Creator:
These subfolders include files
Add those files to your project.
-
@mulfycrowh said in About adding an existing folder in Qt Creator:
These subfolders include files
Add those files to your project.
@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. -
@mulfycrowh said in About adding an existing folder in Qt Creator:
These subfolders include files
Add those files to your project.
@jsulm Screenshot:
Resources
demo
fonts
labels/test/test1 -
@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.@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.
-
@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.
@jsulm How do I share a picture?
-
@jsulm How do I share a picture?
@mulfycrowh You can post it to some file sharing service and post the link here.
-
@mulfycrowh You can post it to some file sharing service and post the link here.
-
@mulfycrowh How does your resource file look like?
-
@mulfycrowh How does your resource file look like?
@jsulm At the end of the file, I have a big plus sign and beside: "Resources/labels/test/test1/add_80_4k.png
-
@mulfycrowh How does your resource file look like?
@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?
-
@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?
@mulfycrowh
As far as I know that is correct. Same in e.g.git, and others. -
@mulfycrowh
As far as I know that is correct. Same in e.g.git, and others.@JonB That's a very weird way to manage folders and subfolders...
-
@JonB That's a very weird way to manage folders and subfolders...
@mulfycrowh
Ingittoo 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. -
@mulfycrowh
Ingittoo 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.@JonB I am speaking about Qt Creator
-
@JonB That's a very weird way to manage folders and subfolders...
Hi.
Im not sure what the weird part is?
It will show the tree of folders
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. :) -
Hi.
Im not sure what the weird part is?
It will show the tree of folders
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. :)@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..