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. Deploying QT network application
Qt 6.11 is out! See what's new in the release blog

Deploying QT network application

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.6k 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.
  • M Offline
    M Offline
    mdnchauhan
    wrote on last edited by
    #1

    Hi friends,
    I am developing one QT application inside which I am providing Network communication support to a server. (using QNetworkRequest, QNetworkAccessManager, QNetworkReply for communication).

    When I am trying to run the compiled exe on a fresh machine that does not have QT installed. There I need to put certain dlls(like Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll) so that my exe executes by just double clicking.

    The exe runs without providing network support. As I compile application by just writing network supported code the exe does not start.

    Do I need to have any Dll that provides network support inside my deployment folder (in same way I am keeping other dlls those are necessary for gui etc)?

    thanks.
    MChauhan

    jsulmJ 1 Reply Last reply
    0
    • M mdnchauhan

      Hi friends,
      I am developing one QT application inside which I am providing Network communication support to a server. (using QNetworkRequest, QNetworkAccessManager, QNetworkReply for communication).

      When I am trying to run the compiled exe on a fresh machine that does not have QT installed. There I need to put certain dlls(like Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll) so that my exe executes by just double clicking.

      The exe runs without providing network support. As I compile application by just writing network supported code the exe does not start.

      Do I need to have any Dll that provides network support inside my deployment folder (in same way I am keeping other dlls those are necessary for gui etc)?

      thanks.
      MChauhan

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

      @mdnchauhan You need Qt5Network.dll
      See http://doc.qt.io/qt-5/windows-deployment.html

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

      M 1 Reply Last reply
      2
      • jsulmJ jsulm

        @mdnchauhan You need Qt5Network.dll
        See http://doc.qt.io/qt-5/windows-deployment.html

        M Offline
        M Offline
        mdnchauhan
        wrote on last edited by
        #3

        @jsulm thanks for ur reply. It is still not running. Is there need to provide dll for supporting XML operation. As I am using QDomDocument im my app.

        in my .pro file :
        QT += core gui network xml

        So is there need to provide dll that will support xml operation.

        jsulmJ 1 Reply Last reply
        0
        • M mdnchauhan

          @jsulm thanks for ur reply. It is still not running. Is there need to provide dll for supporting XML operation. As I am using QDomDocument im my app.

          in my .pro file :
          QT += core gui network xml

          So is there need to provide dll that will support xml operation.

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

          @mdnchauhan Yes you need Qt5Xml.dll. You should really take a look at the Windows Deployment Tool (link I provided before) - it can help you to create a distribution of your app with all needed DLLs.

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

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

            Hi,

            To add to @jsulm, there are also the bearer plugins to deploy. So as already suggested, take a look a look at the deployment guide and more specifically the windeployqt tool.

            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
            1
            • M Offline
              M Offline
              mdnchauhan
              wrote on last edited by
              #6

              Thanks for your valuable suggestions. Thanks jsulm.

              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