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. add file to qrc command line
Forum Updated to NodeBB v4.3 + New Features

add file to qrc command line

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 255 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.
  • C Offline
    C Offline
    Cervo2paille
    wrote on last edited by
    #1

    Hello.

    I add a picture in a repository. I am looking for how to add in the code my picture to my qrc ressource.
    In fact, i need to load the relative path from the picture that i added previously, in my compilate code. So it must be in qrc resource.
    Any idea ? Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You cannot modify the resources that are built in to your executable at run time.

      To add a file to your resources at compile time you just need to modify the QRC file and rebuild your application. You can modify the QRC file using a dedicated editor, like the one in Qt Designer, or by simply editing the text file.

      1 Reply Last reply
      5

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved