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. Quick question!
Forum Updated to NodeBB v4.3 + New Features

Quick question!

Scheduled Pinned Locked Moved General and Desktop
10 Posts 6 Posters 4.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.
  • T Offline
    T Offline
    tangomouse
    wrote on last edited by
    #1

    hey all , if i write a Qt C++ app would the framework need to be installed on other windows machines to run? like a .net app needs .net framework.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Welcome to the forum

      This depends on the installation you use. Typically, Qt is setup using dlls. Those dlls have to be available on your target system.

      You can compile your own version of Qt with static libs. However, beware of the license options.

      Assuming that this quick answer is sufficient. You find more information on devnet.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tangomouse
        wrote on last edited by
        #3

        so i cant create a standalone native exe that can be used on xp/vista/seven?

        if thats the case then its back to Vs 2010

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          you can build a standalone executable for windows if you link statically to Qt. But then you need a commercial license or afaik your software must be GPL.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            [quote author="tangomouse" date="1310902554"]so i cant create a standalone native exe that can be used on xp/vista/seven?
            [/quote]
            You can use it on the different windows versions, but you have to make sure that you have also the dlls there. You can make a setup project in visual studio. This allows you to have all the dlls of Qt, and there are also some ms dlls required, in one installation file.
            [quote author="tangomouse" date="1310902554"]if thats the case then its back to Vs 2010[/quote]
            What do you mean with that part?

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • E Offline
              E Offline
              Edico
              wrote on last edited by
              #6

              [quote author="tangomouse" date="1310901023"]hey all , if i write a Qt C++ app would the framework need to be installed on other windows machines to run? like a .net app needs .net framework.

              [/quote]

              No, but you need to copy the dll files that your application depends upon (you can use Dependency Walker to find them).
              Follow this tutorial for a detailed explanation about how to deploy applications on Windows platform http://developer.qt.nokia.com/doc/qt-4.7/deployment-windows.html

              1 Reply Last reply
              0
              • C Offline
                C Offline
                changsheng230
                wrote on last edited by
                #7

                No need,
                if it is needed, Single app is enough for static compilation , and copy necessary dll together with your app for dynamic compilation .

                Chang Sheng
                常升

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tangomouse
                  wrote on last edited by
                  #8

                  my app is a single executable , i had this problem with this before ,I wrote a program called Re-enable ,now in its second release Re-EnableV2 , Written in vb.net ,users wanted a single exe that runs on any windows machine ,even those without .net installed ,so i had to use xenocode to make it portable.

                  So i decided its time i learnt to code in C++ which i have done and know enough to start working on the next release , I am used to the .net interface but dont like the amount of controls in VS 2010 in win32 or mfc, now i like the Qt interface its just what i'm looking for but the end result must be a single exe thats small in size and usable on all windows platforms. ,using xenocode massively increases the size ,up to 23mb from a few 100k exe

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    Then the only option would be use mingw and static libs. But for static linking, you must have a commercial licenmse or use GPL I think. Using MSVS will not give one exe that runs on all windows machines, as it depends on the MSVC runtime version (= redistributables) which must be installed in the right version...

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      sfilippidis
                      wrote on last edited by
                      #10

                      I would kindly like to propose the original poster to edit the title of the thread to something more informative. :-)

                      https://www.filippidis.name/

                      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