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. QT with C++20 modules
Forum Updated to NodeBB v4.3 + New Features

QT with C++20 modules

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 2.5k 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.
  • R Offline
    R Offline
    RTEDFD
    wrote on last edited by
    #1

    Is it technically possible to develop a Qt 6.3+ Widgets application on Windows with using C++20 modules?

    Any example, or a step-by-step guide?

    I would like if it will work from the box, like the default Qt application, when you create a new project in Qt Creator IDE.
    Just click on the green button and it runs.

    Christian EhrlicherC 1 Reply Last reply
    1
    • R RTEDFD

      Is it technically possible to develop a Qt 6.3+ Widgets application on Windows with using C++20 modules?

      Any example, or a step-by-step guide?

      I would like if it will work from the box, like the default Qt application, when you create a new project in Qt Creator IDE.
      Just click on the green button and it runs.

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

      @RTEDFD said in QT with C++20 modules:

      Is it technically possible to develop a Qt 6.3+ Widgets application on Windows with using C++20 modules?

      It is but you have to create and fiddle it out by yourself. Qt does not provide anything regarding this currently since even the build systems are not really mature for this yet.

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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        InForward
        wrote on last edited by
        #3

        Could I make moc to compile .ixx files by changing something in vcxproj with QtVsTools? Moc macros in a module file will cause link errors because module files won't be selected for moc.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          moc does not support modules yet - feel free to provide patches to enable this support.

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

          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