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 15 Jul 2022, 01:51 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.

    C 1 Reply Last reply 15 Jul 2022, 04:58
    1
    • R RTEDFD
      15 Jul 2022, 01:51

      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.

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 15 Jul 2022, 04:58 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 3 Nov 2024, 12:51 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
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 3 Nov 2024, 12:52 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