Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to run a C++ code in Qt?
Forum Updated to NodeBB v4.3 + New Features

How to run a C++ code in Qt?

Scheduled Pinned Locked Moved Installation and Deployment
123 Posts 5 Posters 109.3k Views 3 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.
  • S SGaist
    21 Dec 2015, 21:45

    I didn't realize… You changed Visual Studio's version in between. On Windows you can't mix and match compilers and libraries, Visual Studio's compilers are not compatible one with the other. So since you have the MSVC2013 Qt package, you have to use Visual Studio 2013 with it.

    If you want to use Visual Studio 2015, you can either build Qt yourself, or go with the 5.6 beta which has VS2015 packages.

    R Offline
    R Offline
    Rela
    wrote on 22 Dec 2015, 13:39 last edited by
    #56

    @SGaist said:
    Thanks, which one do you recommend? I spent a lot of time on lunching and problem with running my programs until now because of components and compilers. If I uninstall 5.5 and install 6.5. beta, does Qt 6.5. work conveniently with Qt5.5. projects?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Dec 2015, 21:10 last edited by
      #57

      You're too much in the future ;) It's 5.6

      No problem using Qt 5.6 for project started with 5.5. Forward compatibility is one of Qt's guaranties.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply 23 Dec 2015, 11:40
      0
      • S SGaist
        22 Dec 2015, 21:10

        You're too much in the future ;) It's 5.6

        No problem using Qt 5.6 for project started with 5.5. Forward compatibility is one of Qt's guaranties.

        R Offline
        R Offline
        Rela
        wrote on 23 Dec 2015, 11:40 last edited by
        #58

        @SGaist
        I was going to uninstall it by opening "Maintenancetool.exe" > "Remove all components" but it gives this error in 92%...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 23 Dec 2015, 22:31 last edited by
          #59

          Unusual, but why not just update ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply 4 Jan 2016, 09:13
          0
          • S SGaist
            23 Dec 2015, 22:31

            Unusual, but why not just update ?

            R Offline
            R Offline
            Rela
            wrote on 4 Jan 2016, 09:13 last edited by
            #60

            @SGaist
            I was going to work with Qt 5.6 beta with MVS2015. To have Qt 5.6 beta can I just update Qt 5.5? I clicked on update components in "Maintenancetool.exe" , is this the component I need?

            1 Reply Last reply
            1
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 4 Jan 2016, 10:49 last edited by
              #61

              No, that's Qt Creator. It's the IDE.

              IIRC, the 5.6 beta installer is available through your Qt Account page

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              R 1 Reply Last reply 5 Jan 2016, 07:32
              0
              • S SGaist
                4 Jan 2016, 10:49

                No, that's Qt Creator. It's the IDE.

                IIRC, the 5.6 beta installer is available through your Qt Account page

                R Offline
                R Offline
                Rela
                wrote on 5 Jan 2016, 07:32 last edited by
                #62

                @SGaist
                If you mean through this link, the Qt5.5 should not be uninstalled first?

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 5 Jan 2016, 11:29 last edited by
                  #63

                  There's also that link indeed. Since it's an offline installer, I don't remember whether it will overwrite the Qt folder or not

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  R 1 Reply Last reply 5 Jan 2016, 11:52
                  0
                  • S SGaist
                    5 Jan 2016, 11:29

                    There's also that link indeed. Since it's an offline installer, I don't remember whether it will overwrite the Qt folder or not

                    R Offline
                    R Offline
                    Rela
                    wrote on 5 Jan 2016, 11:52 last edited by
                    #64

                    @SGaist
                    Is the installation way different from Qt5.5? Why does Qt5.6 give this error, while I installed Qt5.5 in the same folder?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 5 Jan 2016, 21:27 last edited by
                      #65

                      Don't put Qt in a path with white spaces, that will save you much trouble.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      R 1 Reply Last reply 6 Jan 2016, 12:10
                      0
                      • S SGaist
                        5 Jan 2016, 21:27

                        Don't put Qt in a path with white spaces, that will save you much trouble.

                        R Offline
                        R Offline
                        Rela
                        wrote on 6 Jan 2016, 12:10 last edited by
                        #66

                        @SGaist
                        If you mean "program files'' it was the same folder I installed previous Qt5.5 and didnt give any message. By default Qt5.6 beta selects the C drive to install.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 6 Jan 2016, 15:46 last edited by
                          #67

                          That's what I mean. Avoid white spaces it's the best thing to do on Windows.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          R 1 Reply Last reply 7 Jan 2016, 08:23
                          0
                          • S SGaist
                            6 Jan 2016, 15:46

                            That's what I mean. Avoid white spaces it's the best thing to do on Windows.

                            R Offline
                            R Offline
                            Rela
                            wrote on 7 Jan 2016, 08:23 last edited by
                            #68

                            @SGaist
                            Just to be sure which one I need to install?Qt5.6

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 7 Jan 2016, 08:27 last edited by
                              #69

                              The second one unless you are planning to use WinRT

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              R 1 Reply Last reply 7 Jan 2016, 08:36
                              0
                              • S SGaist
                                7 Jan 2016, 08:27

                                The second one unless you are planning to use WinRT

                                R Offline
                                R Offline
                                Rela
                                wrote on 7 Jan 2016, 08:36 last edited by Rela 1 Jul 2016, 08:54
                                #70

                                @SGaist
                                I dont have any idea about that, I was just running a C++ code in Qt and get outputs in UI... how can I know if it was installed before in Qt5.5? Moreover, there is a "_64" difference between the two: qt-opensource-windows-x86-msvc2015_64-5.6.0-beta.exe 17-Dec-2015 and
                                qt-opensource-windows-x86-msvc2015-5.6.0-beta.exe

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 7 Jan 2016, 09:55 last edited by
                                  #71

                                  The _64 is to be used if you want to build a 64 bit version of your application. That also requires a 64 bit OS to run.

                                  The Beta doesn't installed itself in 5.5 since it's the 5.6 beta

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  R 1 Reply Last reply 7 Jan 2016, 10:28
                                  0
                                  • S SGaist
                                    7 Jan 2016, 09:55

                                    The _64 is to be used if you want to build a 64 bit version of your application. That also requires a 64 bit OS to run.

                                    The Beta doesn't installed itself in 5.5 since it's the 5.6 beta

                                    R Offline
                                    R Offline
                                    Rela
                                    wrote on 7 Jan 2016, 10:28 last edited by
                                    #72

                                    @SGaist
                                    My system is windows 7 64-bit, and I am going to run a C++ code using Qt with MCVS 2015.
                                    Just to prevent from over or re-installation again, could you please tell me which one I need to install?

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 7 Jan 2016, 11:39 last edited by
                                      #73

                                      If you plan to only run your application on 64bit Windows, then take the 64bit version otherwise the 32.

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      R 1 Reply Last reply 22 Jan 2016, 09:17
                                      0
                                      • S SGaist
                                        7 Jan 2016, 11:39

                                        If you plan to only run your application on 64bit Windows, then take the 64bit version otherwise the 32.

                                        R Offline
                                        R Offline
                                        Rela
                                        wrote on 22 Jan 2016, 09:17 last edited by Rela
                                        #74

                                        @SGaist
                                        I installed the first one here to be able to run my projects using MCVS 2015 compiler. It worked last week. I think I have still the older Qt 5.5. and couldn't uninstall it.
                                        Now I am again trying to run my project, but cannot find the Qt5.6 beta. when I open the Qt shortcut on my desktop, it has only the MCVS 2013 as compiler.
                                        How can I run projects using Qt 5.6 beta shown here and get rid of Qt 5.5?
                                        In addition, when I open the "MaintenanceTool.exe" to update it, this error appears.

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 23 Jan 2016, 23:53 last edited by
                                          #75

                                          Qt 5 beta should be installed somewhere like C:\Qt\5.6.0. In any case you are probably using the Qt 5.5 installed Qt Creator. Either add a Qt Version and a Kit in the Preferences of Qt Creator using your Qt 5.6 beta or start the Qt Creator from Qt 5.6 beta.

                                          If you don't what that mix, just remove both and re-install only Qt 5.6 beta.

                                          There's nothing to update in a beta version.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          R 1 Reply Last reply 25 Jan 2016, 08:41
                                          0

                                          • Login

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