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. C++ library included in version 14
Forum Updated to NodeBB v4.3 + New Features

C++ library included in version 14

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

    In my Win10 machine, I have installed
    Microsoft Visual Studio 11. 12 and 14
    Qt has chosen 11's include directory as its source for the C++ library, I would very much prefer to use the C++ library included in version 14. Is this possible?

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Which version of Qt did you install?
      You must use Qt built for the Visual Studio version you want to use.
      If you use Visual Studio 2013 then you need Qt for that version.
      You can select Qt version in the online installer.

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

      1 Reply Last reply
      0
      • Hamed.MasafiH Offline
        Hamed.MasafiH Offline
        Hamed.Masafi
        wrote on last edited by
        #3

        In qt 5.4 add this line to pro file

        CONFIG += c++14
        

        Remote object sharing (OO RPC)
        http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

        Advanced, Powerful and easy to use ORM for Qt5
        https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by Chris Kawa
          #4

          @Hamed-Masafi OP is asking to choose a MSVC version 14.0 (VS2015), not a c++ language version. Besides, VS does not use any special switches to enable language version. It always uses the latest features it supports. That CONFIG switch is for GCC and Clang, which default to the c++98 standard.

          @Papa Qt Creater uses a concept of Kits. A kit is a collection of a compiler, debugger and Qt library compiled with that compiler version.
          If you have MSVC 14.0(VS2015) installed it should be auto detected on the "Compilers" tab. There's no Qt version pre-built with MSVC 14.0, so you'll have to compile it yourself. There's gonna be a pre-build package in Qt 5.6 in about a month. After ou have built Qt you can add it to the "Qt Versions" tab and then create a Kit that uses that compiler and Qt version. When you have a Kit set up it will be offered to you in the project creation wizard.

          jsulmJ 1 Reply Last reply
          0
          • Chris KawaC Chris Kawa

            @Hamed-Masafi OP is asking to choose a MSVC version 14.0 (VS2015), not a c++ language version. Besides, VS does not use any special switches to enable language version. It always uses the latest features it supports. That CONFIG switch is for GCC and Clang, which default to the c++98 standard.

            @Papa Qt Creater uses a concept of Kits. A kit is a collection of a compiler, debugger and Qt library compiled with that compiler version.
            If you have MSVC 14.0(VS2015) installed it should be auto detected on the "Compilers" tab. There's no Qt version pre-built with MSVC 14.0, so you'll have to compile it yourself. There's gonna be a pre-build package in Qt 5.6 in about a month. After ou have built Qt you can add it to the "Qt Versions" tab and then create a Kit that uses that compiler and Qt version. When you have a Kit set up it will be offered to you in the project creation wizard.

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

            @Chris-Kawa As far as I know there is already a Qt 5.6 beta build for VS 2015.

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

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jsulm Yeah, but the question seems basic and I wouldn't recommend beta versions to beginners. The final 5.6 version is planned for 9th Feb.

              jsulmJ 1 Reply Last reply
              0
              • Chris KawaC Chris Kawa

                @jsulm Yeah, but the question seems basic and I wouldn't recommend beta versions to beginners. The final 5.6 version is planned for 9th Feb.

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

                @Chris-Kawa But building Qt is not something I would ask a beginner to do :-)

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

                1 Reply Last reply
                0
                • Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @jsulm touché :) I guess the best recommendation for now is to use VS2013 with the pre-build package until 5.6 comes out.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Papa
                    wrote on last edited by
                    #9

                    Yes, I agree, using VS2013 for the time being is the most sensible decision.

                    Thanks kids for the help.

                    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