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. QPushButton Icon
Forum Updated to NodeBB v4.3 + New Features

QPushButton Icon

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.0k Views 1 Watching
  • 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.
  • NosbaN Offline
    NosbaN Offline
    Nosba
    wrote on last edited by
    #1

    Hello,

    I'm writing a simple minesweeper game. To do this I use a resources file where there are my images and my icons, but when I compile the app the images are not copied into the executable.

    Is there something to add to the .pro file to copy the resources on the executable?

    raven-worxR 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      no, it should just work if you just added a qres file to project
      and then added the images to the pro file.
      Then you run qmake
      And your exe should have the images compiled in.

      1 Reply Last reply
      3
      • NosbaN Nosba

        Hello,

        I'm writing a simple minesweeper game. To do this I use a resources file where there are my images and my icons, but when I compile the app the images are not copied into the executable.

        Is there something to add to the .pro file to copy the resources on the executable?

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Nosba
        read this. This gets you covered with all you need.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • NosbaN Offline
          NosbaN Offline
          Nosba
          wrote on last edited by
          #4

          thanks you all,
          I was wrong the paths of the files... A stupid error.

          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