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. cross plugin linking
Forum Update on Monday, May 27th 2025

cross plugin linking

Scheduled Pinned Locked Moved Solved General and Desktop
pluginresourcelinkerdesigner
5 Posts 2 Posters 1.7k 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.
  • B Offline
    B Offline
    bob123
    wrote on last edited by
    #1

    I have the case that I want to use widgets from one designer plugin within another plugin.
    As long as I do not use resources this works fine by linking the basic plugin to the other plugin.
    However, if the basic plugin contains resources and is linked to the other plugin qt designer does not find these resources anymore. Probably because the same resources are present in multiple plugins (because of the linking).
    => Cannot open file ':/Attitude/Default/foreground.svg', because: Unknown error

    If I do not link the basic plugin to the others the designer does not resolve the cross library dependencies at runtime and does not start.
    => symbol lookup error: /home/sbuhmann/src/hrov/newreptest/install/lib/qt/designer/libhrov_widget_collection.so: undefined symbol: _ZN11DoubleGaugeC1EP7QWidget

    How can I solve this?

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

      Hi and welcome to devnet,

      Are these dependent plugins all yours ?

      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
      0
      • B Offline
        B Offline
        bob123
        wrote on last edited by
        #3

        Yes, they are

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

          Then you should rather put all the common code in a library and link your plugins against it.

          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
          0
          • B Offline
            B Offline
            bob123
            wrote on last edited by
            #5

            Yes, it works if I build a normal shared library an a designer plugin containing the widgets used by other plugins.
            The normal shared library is used to be linked to the other ones and the plugin is loaded into the designer to have the widgets available there.

            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