Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run external qt application from command line with custom qrc?

Run external qt application from command line with custom qrc?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 346 Views
  • 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.
  • S Offline
    S Offline
    seedship
    wrote on last edited by seedship
    #1

    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!

    W 1 Reply Last reply
    0
    • S seedship

      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!

      W Offline
      W Offline
      wrosecrans
      wrote on last edited by
      #2

      @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.

      S 1 Reply Last reply
      1
      • W wrosecrans

        @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.

        S Offline
        S Offline
        seedship
        wrote on last edited by
        #3

        @wrosecrans Ah yay thanks so much!

        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