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. use widget as a shared library and update gui from main (non-qt) application
Forum Updated to NodeBB v4.3 + New Features

use widget as a shared library and update gui from main (non-qt) application

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 263 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.
  • X Offline
    X Offline
    xiaoyingwang
    wrote on 10 Mar 2023, 16:57 last edited by
    #1

    Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.

    The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.

    J S 2 Replies Last reply 10 Mar 2023, 17:32
    0
    • X xiaoyingwang
      10 Mar 2023, 16:57

      Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.

      The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.

      J Offline
      J Offline
      JoeCFD
      wrote on 10 Mar 2023, 17:32 last edited by JoeCFD 3 Oct 2023, 17:34
      #2

      @xiaoyingwang No, you have to build a Qt GUI app which has its own event loops and link your app to the GUI app. Qt GUI app has to be the main app. Build your app to so or dll and link it the GUI app.

      1 Reply Last reply
      0
      • X xiaoyingwang
        10 Mar 2023, 16:57

        Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.

        The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.

        S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 10 Mar 2023, 21:18 last edited by
        #3

        @xiaoyingwang hi, it might be doable but it's not guaranteed to work on all platforms.

        See this Stack Overflow thread.

        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

        1/3

        10 Mar 2023, 16:57

        • Login

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