Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. question for Qt C++20 support
Qt 6.11 is out! See what's new in the release blog

question for Qt C++20 support

Scheduled Pinned Locked Moved Unsolved Qt 6
8 Posts 5 Posters 3.2k Views 5 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.
  • Teemo of LOLT Offline
    Teemo of LOLT Offline
    Teemo of LOL
    wrote on last edited by
    #1

    I haven't seen any official documentation on Qt6 claiming full support for C++20. Does it only support some features of C++20? In Visual Studio 2019/2022, there is support for C++20. Does anyone know more about this? For now, I assume that Qt only partially supports C++20. I would appreciate any insights

    thx

    Christian EhrlicherC 1 Reply Last reply
    0
    • Teemo of LOLT Teemo of LOL

      I haven't seen any official documentation on Qt6 claiming full support for C++20. Does it only support some features of C++20? In Visual Studio 2019/2022, there is support for C++20. Does anyone know more about this? For now, I assume that Qt only partially supports C++20. I would appreciate any insights

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @Teemo-of-LOL what exactly do you miss?
      Qt 6 can be compiled with c++20 so what's the point of your question?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Teemo of LOLT 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @Teemo-of-LOL what exactly do you miss?
        Qt 6 can be compiled with c++20 so what's the point of your question?

        Teemo of LOLT Offline
        Teemo of LOLT Offline
        Teemo of LOL
        wrote on last edited by
        #3

        @Christian-Ehrlicher I'm curious whether it provides partial support or full 100% support, and I'd like to see related official website content on this matter.

        thx

        Chris KawaC 1 Reply Last reply
        0
        • jeremy_kJ Offline
          jeremy_kJ Offline
          jeremy_k
          wrote on last edited by
          #4

          What does full support mean?

          There are threads on the Qt development mailing list and tickets in the Qt bug tracker that discuss different aspects of the language. For a more targeted question (eg can Qt APIs be imported as modules), a more concrete answer is possible.

          Asking a question about code? http://eel.is/iso-c++/testcase/

          1 Reply Last reply
          1
          • Teemo of LOLT Teemo of LOL

            @Christian-Ehrlicher I'm curious whether it provides partial support or full 100% support, and I'd like to see related official website content on this matter.

            Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Teemo-of-LOL Your question makes no sense. Qt is a library. What does it mean for a library to have 100% language support?

            For example C++20 added std::span or explicit aggregate initialization. What kind of support would Qt provide for them?

            Are you maybe confusing Qt with a compiler? Those are two different things. A status of compiler support for given language and library version is listed here. Qt has nothing to do with it.

            Teemo of LOLT 1 Reply Last reply
            3
            • Chris KawaC Chris Kawa

              @Teemo-of-LOL Your question makes no sense. Qt is a library. What does it mean for a library to have 100% language support?

              For example C++20 added std::span or explicit aggregate initialization. What kind of support would Qt provide for them?

              Are you maybe confusing Qt with a compiler? Those are two different things. A status of compiler support for given language and library version is listed here. Qt has nothing to do with it.

              Teemo of LOLT Offline
              Teemo of LOLT Offline
              Teemo of LOL
              wrote on last edited by
              #6

              @Chris-Kawa It seems like I didn't explain well. I was wondering if it fully supports C++17 like the content on this website https://www.qt.io/blog/qt-6.0-released, or if it only partially supports it. Did I misunderstand something? Aren't there two categories: supporting some parts of the C++ standard or supporting it entirely?

              thx

              SGaistS Chris KawaC 2 Replies Last reply
              0
              • Teemo of LOLT Teemo of LOL

                @Chris-Kawa It seems like I didn't explain well. I was wondering if it fully supports C++17 like the content on this website https://www.qt.io/blog/qt-6.0-released, or if it only partially supports it. Did I misunderstand something? Aren't there two categories: supporting some parts of the C++ standard or supporting it entirely?

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Teemo-of-LOL again: that's a compiler thing.

                What Qt might do is use features from the standard but it can only do so for the subset that is supported by the compilers of all officially supported platforms.

                Using features from one of the standard also means that Qt users will have to have such a compiler at hand. Hence the bar raised to C++11 for Qt 5 and C++17 for Qt 6.

                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
                3
                • Teemo of LOLT Teemo of LOL

                  @Chris-Kawa It seems like I didn't explain well. I was wondering if it fully supports C++17 like the content on this website https://www.qt.io/blog/qt-6.0-released, or if it only partially supports it. Did I misunderstand something? Aren't there two categories: supporting some parts of the C++ standard or supporting it entirely?

                  Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Teemo-of-LOL said:

                  Aren't there two categories: supporting some parts of the C++ standard or supporting it entirely?

                  When it comes to a compiler yes, you could say that. When it comes to a library, like Qt, no, that statement makes no sense.

                  The article you linked is talking about Qt using some features from the C++17 standard and thus requiring a compiler that provides this language version.

                  1 Reply Last reply
                  3

                  • Login

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