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. Icons are visible in resource editor, but invisible in app

Icons are visible in resource editor, but invisible in app

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 538 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.
  • SolaVitaeS Offline
    SolaVitaeS Offline
    SolaVitae
    wrote on last edited by
    #1

    I have some .pngs im using as icons made from photoshop, i can see the icon in the resource editor

    alt text

    But when i compile the app, and try to look at it in-app its invisible.

    the .qrc file is compiled with rcc, and is included in my app, as every other icon i have works fine. There is an entry in the qrc.cpp file for each icon, obviously i dont know if its correct or not as its all just data. There has been no other changes to these files that would make them any different than the other .pngs im using. The files arent corrupted or anything, and can be viewed in every other editor.

    I do notice that in the built in resource selector from QT Designer, the icons are invisible in my resource file, but when viewing the resource file itself in creator it is fine

    In resource selector :
    alt text

    in resource editor:
    alt text

    T 1 Reply Last reply
    0
    • SolaVitaeS SolaVitae

      I have some .pngs im using as icons made from photoshop, i can see the icon in the resource editor

      alt text

      But when i compile the app, and try to look at it in-app its invisible.

      the .qrc file is compiled with rcc, and is included in my app, as every other icon i have works fine. There is an entry in the qrc.cpp file for each icon, obviously i dont know if its correct or not as its all just data. There has been no other changes to these files that would make them any different than the other .pngs im using. The files arent corrupted or anything, and can be viewed in every other editor.

      I do notice that in the built in resource selector from QT Designer, the icons are invisible in my resource file, but when viewing the resource file itself in creator it is fine

      In resource selector :
      alt text

      in resource editor:
      alt text

      T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by
      #2

      @SolaVitae
      Do you mean inside project when you open in project navigator?? I didn't get your question..

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Aren't you missing the :/ at the start of the path to your resources's icons ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

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