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. Qt Resource images not showing while executing
QtWS25 Last Chance

Qt Resource images not showing while executing

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

    I'm also facing the issue of resource images not visible when the app is running. I have a plugin-based architecture. Lets say,

    1. NavControls, a staticLib, in which we have the icons on buttons.
    2. The NavControls.lib is used by a Plugin (VIEWERSHARED_EXPORT). I added it in the .pro of the Viewer Plugin
    //win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../Deploy/bin/release/ -lNavControls
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../Deploy/bin/debug/ -lNavControls
    
    INCLUDEPATH += $$PWD/../NavControls
    DEPENDPATH += $$PWD/../NavControls
    
    1. This Viewer plugin implements an Interface.
    2. Finally, I load the plugin in the app, by QPluginLoader class..

    The plugin loads without any warnings, but the images are missing on the navControl's buttons.

    Please suggest what I'm missing!!

    Thanks,
    Sayan

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

      Hi,

      As already answered in this thread:

      You likely missed the Using Resources in a Library part of the The Qt Resource System chapter in Qt's documentation.

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

      S 1 Reply Last reply
      3
      • SGaistS SGaist

        Hi,

        As already answered in this thread:

        You likely missed the Using Resources in a Library part of the The Qt Resource System chapter in Qt's documentation.

        S Offline
        S Offline
        sayan275
        wrote on last edited by
        #3

        @SGaist Thanks for the suggestion.
        Sorry for the very delayed reply.
        I tried few options as in the mentioned link.
        Adding the qrc path in the application's pro file worked.

        Thank you!!

        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