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. qthread conflict with _I in VS2022, BUT ok in qt5
Forum Updated to NodeBB v4.3 + New Features

qthread conflict with _I in VS2022, BUT ok in qt5

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 22 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.
  • Q Offline
    Q Offline
    QtTester
    wrote last edited by
    #1

    hey guys ,I found strange things.

    Qt6.9.2 +VS2022 fail to compile the code:
    macro definition "#define _I" conflict with "#include <QThread>"
    But it works in Qt5.14 + VS2017 !!!

    wechat_2025-09-27_115936_437.jpg

    after comment "#define _I" or "#include <Qthread> ", it compile OK

    wechat_2025-09-27_115955_667.jpg
    wechat_2025-09-27_120028_586.jpg

    here is the code
    link text

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote last edited by
      #2

      include the Qt headers first

      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