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. Import resources in Qt Creator

Import resources in Qt Creator

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

    Hi All,

    I am trying to access the resources file (.qrc file) within the Style Sheet section of Qt Creator to add a border-image to my QPushButton. The filetype I am using for my application is 'Qt Designer Form'.

    When I open the Style Sheets editor, I can click the down arrow next to the 'Add Resource' button and there is an option to select 'border-image' (see attached screenshot).

    Once the 'border-image' option is selected, another window opens which is titled 'Select Resource'. In this window I am not able to see anything from within my resources file (see attached screenshot).

    I have set up a resources file by taking the following steps:
    File >> New File or Project >> Qt>>Qt Resources File.

    The resources file itself seems to be working correctly as I have been able to add icons/images without any issue (see attached screenshot).

    Could someone please help me access this resource file. I can't find an answer to this question anywhere online.

    Thank you!![2_1634843340381_Screen Shot 2021-10-22 at 5.54.50 am.png](Uploading 100%) ![1_1634843340379_Screen Shot 2021-10-22 at 5.54.23 am.png](Uploading 100%) ![0_1634843340378_Screen Shot 2021-10-22 at 5.54.10 am.png](Uploading 100%)

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

      Hi
      After you added the files to the res file, do you build the project ?

      (sorry the screenshots cant be uploaded here directly as its broken)

      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