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. How to create and use Qt DLL's (with UI) and use them in an application

How to create and use Qt DLL's (with UI) and use them in an application

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 3.6k 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.
  • P Offline
    P Offline
    panch
    wrote on last edited by
    #1

    Hi,

    I am trying to create a main QWidget application that should load DLL's from an extension folder, where these DLL's are stored.
    Each DLL is a Qt Widget created with a .ui form file.

    I would like to know:

    • How to create such DLL's so that they can be imported. For ease, they should be able to be created using the UI designer through Visual Studio. Preferably the project creating the DLL could be a QT application that loads the widget, so that during development, I can have the DLL visualized.
    • How to import them into my main project and have then displayed in eg. tabs as child dialogs, one for each tab.

    Thanks in advance!

    Carsten

    jsulmJ raven-worxR 2 Replies Last reply
    0
    • P panch

      Hi,

      I am trying to create a main QWidget application that should load DLL's from an extension folder, where these DLL's are stored.
      Each DLL is a Qt Widget created with a .ui form file.

      I would like to know:

      • How to create such DLL's so that they can be imported. For ease, they should be able to be created using the UI designer through Visual Studio. Preferably the project creating the DLL could be a QT application that loads the widget, so that during development, I can have the DLL visualized.
      • How to import them into my main project and have then displayed in eg. tabs as child dialogs, one for each tab.

      Thanks in advance!

      Carsten

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @panch Take a look at http://doc.qt.io/qt-5/plugins-howto.html
      For graphical design you can take a look at QtDesigner source code and/or DLL.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P panch

        Hi,

        I am trying to create a main QWidget application that should load DLL's from an extension folder, where these DLL's are stored.
        Each DLL is a Qt Widget created with a .ui form file.

        I would like to know:

        • How to create such DLL's so that they can be imported. For ease, they should be able to be created using the UI designer through Visual Studio. Preferably the project creating the DLL could be a QT application that loads the widget, so that during development, I can have the DLL visualized.
        • How to import them into my main project and have then displayed in eg. tabs as child dialogs, one for each tab.

        Thanks in advance!

        Carsten

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @panch
        see the Echo plugin example
        Just adapt your interface (EchoInterface in the example) so that there is a method which returns a new QWidget* when called.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        P 1 Reply Last reply
        2
        • raven-worxR raven-worx

          @panch
          see the Echo plugin example
          Just adapt your interface (EchoInterface in the example) so that there is a method which returns a new QWidget* when called.

          P Offline
          P Offline
          panch
          wrote on last edited by
          #4

          @raven-worx Thanks alot! actually I got it working, following this simple example:
          https://wiki.qt.io/How_to_create_a_library_with_Qt_and_use_it_in_an_application

          But I will look at the extension way as well, seems more like the right way to go.

          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