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. [SOLVED]Embedding images in exe file
QtWS25 Last Chance

[SOLVED]Embedding images in exe file

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.8k 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.
  • B Offline
    B Offline
    b1gsnak3
    wrote on last edited by
    #1

    Hello!

    I was wondering if it is possible to embed files (like icons, images, etc) in the exe file? I know you can use the NetworkAccessManager to download these files, but I need a non-internet required solution. Also I don't want to save them in the application folder to use as resource files because I don't want the user to modify the icons like he wants.

    Thank you in advance.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi!
      Why don't use resource files?

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        QRC resources are compiled into the binary, they don't need to be stored in the application folder.

        (Z(:^

        1 Reply Last reply
        0
        • B Offline
          B Offline
          b1gsnak3
          wrote on last edited by
          #4

          Thank you. I did not know that :)

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qxoz
            wrote on last edited by
            #5

            But if your question is how to create resource files, then then here is the steps:
            File->New File or Project->files and classes:Qt->Qt Resource file
            then you can add any files into this resource file and it will be compiled into binary file.

            edited
            oops. I think it was not necessary post :)

            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