2

I have an open-source project successfully compiled using Qt Creator on a Ubuntu (Trusty) OS which I am trying to customize.

The problem is that even if in the project itself (on my machine) I can see .rc files, in the Qt tree view those files doesn't appear.

Why is this happening and how can I modify / add those .rc files to my project ? There are probably more than 100 resource files so adding them manually (if possible) is not a solution.


UPDATE 1:
I can't seem to find it

tree_view

As an important note, you should know that this is just an imported project which is compiled / built & runned using QT Creator.

9
  • Are they in your .pro file? Or are you using cmake, qbs, etc.?
    – cmannett85
    May 15, 2015 at 7:05
  • @cmannett85 what .pro file ? As an idea, I am trying to change chromium. Tell me from where to get the information you need and I'll answer. (am new to Qt - have used something else )
    – user4850448
    May 15, 2015 at 7:09
  • It's your project file, you should be able to see it in the project tree view.
    – cmannett85
    May 15, 2015 at 7:11
  • 1
    So it's not a Qt project then. You'll probably have to manually add them to chromium.files - you might be able to use wildcards to automate it.
    – cmannett85
    May 15, 2015 at 8:09
  • 1
    I have no idea if that'll work, I was just guessing. Experiment by manually adding one .rc file and see if it appears in the tree view as you expected.
    – cmannett85
    May 15, 2015 at 8:16

1 Answer 1

2

Make sure your .pro includes something like

OTHER_FILES += your_file_name.rc

as with any other file, you must reference those files in the project file to include them. Of course, this will only show your_file_name.rc in the tree view.

2
  • please see the update. I do not find any .pro file
    – user4850448
    May 15, 2015 at 7:24
  • if the project is not originally created with Qt Creator, is there any way of adding a .pro which includes what I need ?
    – user4850448
    May 15, 2015 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.