Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED]Embedding images in exe file

    General and Desktop
    3
    5
    5375
    Loading More Posts
    • 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
      b1gsnak3 last edited by

      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 Reply Quote 0
      • Q
        qxoz last edited by

        Hi!
        Why don't use resource files?

        1 Reply Last reply Reply Quote 0
        • sierdzio
          sierdzio Moderators last edited by

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

          (Z(:^

          1 Reply Last reply Reply Quote 0
          • B
            b1gsnak3 last edited by

            Thank you. I did not know that :)

            1 Reply Last reply Reply Quote 0
            • Q
              qxoz last edited by

              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 Reply Quote 0
              • First post
                Last post