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. QAction Icon not displaying

QAction Icon not displaying

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 251 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    I have a QToolbar with three Actions added.

    In Designer this displays just fine:

    8b7378fa-a96d-4840-b383-05fdcb074b33-image.png

    But when I run the application I get this:

    e1a58fd9-72e1-4cbd-99be-e0a466f09ce3-image.png

    All the Icons are 55x55, and the Toolbar has

    ea72337b-d5c1-4dfa-bc93-4d6262d72072-image.png

    Here is the Icon that doesn't display:

    StopSign.png

    Puzzled ...

    David

    Christian EhrlicherC 1 Reply Last reply
    0
    • PerdrixP Perdrix

      I have a QToolbar with three Actions added.

      In Designer this displays just fine:

      8b7378fa-a96d-4840-b383-05fdcb074b33-image.png

      But when I run the application I get this:

      e1a58fd9-72e1-4cbd-99be-e0a466f09ce3-image.png

      All the Icons are 55x55, and the Toolbar has

      ea72337b-d5c1-4dfa-bc93-4d6262d72072-image.png

      Here is the Icon that doesn't display:

      StopSign.png

      Puzzled ...

      David

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Wrong resource path?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      PerdrixP 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        Wrong resource path?

        PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        @Christian-Ehrlicher Bingo! I had set it in Designer but it had picked up the filesystem file location not the location of the resource... Now fixed.

        Thank you

        1 Reply Last reply
        0
        • PerdrixP Perdrix has marked this topic as solved on

        • Login

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