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. How C++ 20 Setup for Qt creator ?
Qt 6.11 is out! See what's new in the release blog

How C++ 20 Setup for Qt creator ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 672 Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Any guidance available for setting C++ 20 on Qt Creator ?

    • Which Qt version are you using : Qt 6.9.1
    • Which version of QtCreator are you using : 17.0.0
    • Which platform : Linux KDEneon (Ubuntu 24.4)
    • How did you install it : qt-online-installer-linux-x64-4.10.0
    Screenshot_20250731_190941.png
    Screenshot_20250731_191042.png

    1 Reply Last reply
    0
    • cristian-adamC Online
      cristian-adamC Online
      cristian-adam
      wrote on last edited by
      #2

      Add these lines in your CMakeLists.txt file:

      set(CMAKE_CXX_STANDARD 20)
      set(CMAKE_CXX_STANDARD_REQUIRED ON)
      
      ? 1 Reply Last reply
      2
      • cristian-adamC cristian-adam

        Add these lines in your CMakeLists.txt file:

        set(CMAKE_CXX_STANDARD 20)
        set(CMAKE_CXX_STANDARD_REQUIRED ON)
        
        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @cristian-adam Thanks, it works. Sorry I am new to all this.

        1 Reply Last reply
        1
        • System has marked this topic as solved on

        • Login

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