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. [SOLVED] Running Qt dependent 3rd party dll in Qt dependent host application

[SOLVED] Running Qt dependent 3rd party dll in Qt dependent host application

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.3k 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.
  • V Offline
    V Offline
    vlk23
    wrote on last edited by
    #1

    Hello,
    we are having a problem running our Qt based VST plugin in a host application also based on Qt on Windows platform. Both are linked dynamically, the plugin uses Qt 4.8.5, the host app uses Qt 5.3.1. When I open the plugin in our host app, it starts but the GUI misses graphics - there are no bitmaps or controls, just few green rectangles instead of controls.

    Could anybody recommend any solution? I am not sure if this could be similar to this post - http://qt-project.org/forums/viewthread/9577 .

    Thanks for any hint.

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

      Hi,

      IIRC your problem is a double set of Qt libraries in the same namespace. I'd rebuild your Qt 4 with a namespace to ensure it doesn't live in the same namespace as the application Qt

      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
      • V Offline
        V Offline
        vlk23
        wrote on last edited by
        #3

        Thank you for your reply. I have tried to rebuild Qt 5.3.1 in a new namespace and the VST plugin that is using Qt4.8 was left without any changes. So now both Qt versions live in different namespace. Unfortunately, it has not solved the problem.

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

          I'm not sure I'm following you correctly. You can also build the host application ?

          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
          • V Offline
            V Offline
            vlk23
            wrote on last edited by
            #5

            Finally the problem was not in different Qt versions, but the main reason why there was no graphic in GUI was that QCoreApplication of the VST modul and widgets of GUI were created in a different thread.
            Anyway, the different namespaces of Qt versions will prevent against some eventual future conflicts.

            Thank you for the reply.

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

              You're welcome !

              But there's something still strange here, why QCoreApplication ? It's not meant for GUI application

              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

              • Login

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