-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.1.0, Qt Creator 3.1.1
-
None
-
Mac OSX 10.8.5 & 10.9.something
Under the Projects sidebar (where the project tree hierarchy is shown), I have a "Resources" section. This section shows my qrc file and expands to show the files within the qrc. The problem is that I have a lot of resource files and as I click into my qml pages open in the editor, "Resources" is expanded down to the qml file that I am editing. If I was working on the qml file out of the qrc that would be fine, but I am using a different method that I first saw in the QuickForcast qt app source code, which uses a project level "qml" directory and creates the qrc file at build time. This action of opening the Resources branch also steals focus from my split editor so when I click to open a new file it doesn't open into the correct split window.
In my project I have a "src" folder and a "qml" folder. I work on the files from the "qml" folder and then in the ".pro" file I have the following code which builds a qrc from the files I am using. APP_FILES is the object in the ".pro" file which includes all of my qml and image files.
# Create the resource file GENERATED_RESOURCE_FILE = $$OUT_PWD/qtProj.qrc RESOURCE_CONTENT = \ "<RCC>" \ "<qresource>" for(resourcefile, APP_FILES) { resourcefileabsolutepath = $$absolute_path($$resourcefile) relativepath_in = $$relative_path($$resourcefileabsolutepath, $$_PRO_FILE_PWD_) relativepath_out = $$relative_path($$resourcefileabsolutepath, $$OUT_PWD) RESOURCE_CONTENT += "<file alias=\"qtMica/$$relativepath_in\">$$relativepath_out</file>" } RESOURCE_CONTENT += \ "</qresource>" \ "</RCC>" write_file($$GENERATED_RESOURCE_FILE, RESOURCE_CONTENT)|error("Aborting.") RESOURCES += $$GENERATED_RESOURCE_FILE
- is replaced by
-
QTCREATORBUG-12595 Switching between views focuses file in qrc file instead of in the project folder
-
- Closed
-