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 used by a Qt library doesn't show when linked to a Qt app
Forum Updated to NodeBB v4.3 + New Features

Icons used by a Qt library doesn't show when linked to a Qt app

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

    Sorry but the title is too vague (I can't think of another title)

    I created a Qt library based on QWidget. The library doesn't have any errors when compiled (either static or dll).

    When I used this library on an application, it doesn't produced any errors but the "icons" that supposedly be there are not shown.

    Isn't it that any resources (.qrc) like icons and files added to a Qt app will be embedded into the exe and and will not be needed as external files when deployed to other PC?

    but how about libraries like .dll and .lib? can they do the same?

    Please visit my open-source projects at https://github.com/Code-ReaQtor.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hostel
      wrote on last edited by
      #2

      I thing that your library need a plugin for jpg/gif/svg.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        I also built my library in "static" mode so I don't think I will be needing the plugin. Even so, "static" or "DLL" results in the same output.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Code_ReaQtor
          wrote on last edited by
          #4

          I found similar links:

          "qtcentre":http://www.qtcentre.org/archive/index.php/t-15590.html
          "qtforum":http://www.qtforum.org/article/19406/resources-in-a-dynamic-library.html?s=b2aa893ddcdc1585386064185cc1e4e31b4be99a#post73670
          "qt-project":http://qt-project.org/forums/viewthread/18539

          Yes! It is a Resource-Only DLL!

          Please visit my open-source projects at https://github.com/Code-ReaQtor.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            Are you using the same path to the resources in other places? Try putting them into a directory "/mylibname/".

            Having libs/plugins with their own resources works fine: Almost all plugins in creator have their own resource file.

            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