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

How C++ 20 Setup for Qt creator ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 48 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.
  • DervishD Offline
    DervishD Offline
    Dervish
    wrote 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 last edited by
      #2

      Add these lines in your CMakeLists.txt file:

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

        Add these lines in your CMakeLists.txt file:

        set(CMAKE_CXX_STANDARD 20)
        set(CMAKE_CXX_STANDARD_REQUIRED ON)
        
        DervishD Offline
        DervishD Offline
        Dervish
        wrote last edited by
        #3

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

        1 Reply Last reply
        1
        • DervishD Dervish has marked this topic as solved

        • Login

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