Run external qt application from command line with custom qrc?
-
I am using a nice Qt based ebook reader called lector, but the default style is not to my liking. I have a qdarkstyle QRC folder with an rc folder of icons, a style.qss and style.qrc from an unrelated Qt project I am working on.
I can get lector to use the colors of qdarkstyle by executing
lector -stylesheet=style.qss
however, all the icons are missing. Is there any way I can launch the executable with the.qrc
, or move the icons in the rc/ folder to a place where the system can find them? It is important to note that the lector program is not my project, and I am hoping to find way to use the.qrc
file with lector or any other Qt program such as QtCreator without compiling or modifying the source of the program in any way, if it is possible.Thanks!
-
I am using a nice Qt based ebook reader called lector, but the default style is not to my liking. I have a qdarkstyle QRC folder with an rc folder of icons, a style.qss and style.qrc from an unrelated Qt project I am working on.
I can get lector to use the colors of qdarkstyle by executing
lector -stylesheet=style.qss
however, all the icons are missing. Is there any way I can launch the executable with the.qrc
, or move the icons in the rc/ folder to a place where the system can find them? It is important to note that the lector program is not my project, and I am hoping to find way to use the.qrc
file with lector or any other Qt program such as QtCreator without compiling or modifying the source of the program in any way, if it is possible.Thanks!
@seedship said in Run external qt application from command line with custom qrc?:
Is there any way I can launch the executable with the .qrc
No. The point of a QRC is to build resources directly into an executable. If you are specifying stuff on the command line at runtime, you have no need for a QRC.
or move the icons in the rc/ folder to a place where the system can find them?
Uh, yeah. The paths to the icons are specified in that style.qss file you mentioned. So, put them wherever it is looking, or edit the .qss file to point at wherever you want to put the icons. There's no magic. The path in the .qss file just has to match the path to the icon.
-
@seedship said in Run external qt application from command line with custom qrc?:
Is there any way I can launch the executable with the .qrc
No. The point of a QRC is to build resources directly into an executable. If you are specifying stuff on the command line at runtime, you have no need for a QRC.
or move the icons in the rc/ folder to a place where the system can find them?
Uh, yeah. The paths to the icons are specified in that style.qss file you mentioned. So, put them wherever it is looking, or edit the .qss file to point at wherever you want to put the icons. There's no magic. The path in the .qss file just has to match the path to the icon.
@wrosecrans Ah yay thanks so much!