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 Can I Create DLL of QTWidgetApplication ?
Forum Updated to NodeBB v4.3 + New Features

How Can I Create DLL of QTWidgetApplication ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 221 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.
  • S Offline
    S Offline
    S_Hamzeh74
    wrote on last edited by
    #1

    Hi, I'm Trying to Design a Desktop Application in Qt Creator and have one Windows (mainwindow.h).
    and I want to assemble this window into another project To complete the project.
    my question is, is there any clean way to create a dll or library file of this window (including .h .cpp and .ui) and then add that to another project?

    What way do you suggest for better development of more extensive software?

    How can I develop my software in an object-oriented way?

    jsulmJ 1 Reply Last reply
    0
    • S S_Hamzeh74

      Hi, I'm Trying to Design a Desktop Application in Qt Creator and have one Windows (mainwindow.h).
      and I want to assemble this window into another project To complete the project.
      my question is, is there any clean way to create a dll or library file of this window (including .h .cpp and .ui) and then add that to another project?

      What way do you suggest for better development of more extensive software?

      How can I develop my software in an object-oriented way?

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

      @S_Hamzeh74 said in How Can I Create DLL of QTWidgetApplication ?:

      then add that to another project?

      Is that other project also a Qt project?
      You can create a DLL, but it will be complicated if the other project is not a Qt project.

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

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @S_Hamzeh74 said in How Can I Create DLL of QTWidgetApplication ?:

        then add that to another project?

        Is that other project also a Qt project?
        You can create a DLL, but it will be complicated if the other project is not a Qt project.

        S Offline
        S Offline
        S_Hamzeh74
        wrote on last edited by
        #3

        @jsulm
        Yes
        other projects are Qt project.
        nothing different
        but I want to attach my window to other windows

        jsulmJ 1 Reply Last reply
        0
        • S S_Hamzeh74

          @jsulm
          Yes
          other projects are Qt project.
          nothing different
          but I want to attach my window to other windows

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

          @S_Hamzeh74 said in How Can I Create DLL of QTWidgetApplication ?:

          but I want to attach my window to other windows

          Not sure what you mean. You can't attach a window to other windows.
          If you mean you want reuse some code from one project in another then yes you can create a shared library from that code. How exactly depends whether you use QMake or CMake.

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

          1 Reply Last reply
          2

          • Login

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