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. Problem compiling QT 6 examples MSVC 2019: inline' not permitted on data declarations error
QtWS25 Last Chance

Problem compiling QT 6 examples MSVC 2019: inline' not permitted on data declarations error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 827 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.
  • M Offline
    M Offline
    mferia
    wrote on last edited by
    #1

    Hi!
    I've installed QT 6 on Windows with MSVCS 2019 Compiler, but when compile any qt example, I'm getting this kind of errors:
    .\Qt\6.0.1\msvc2019_64\include\QtCore\qglobal.h:1253: error: C2433: 'qOverload': CCon data declarations
    .\Qt\6.0.1\msvc2019_64\include\QtCore\qglobal.h:1254: error: C2433: 'qConstOverload': 'inline' not permitted on data declarations
    ...
    ...
    Can someone help me to fix this error?
    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should check which version of Visual Studio installed and update it in case it's not the latest. Or if so, use a previous version.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mferia
        wrote on last edited by
        #3

        @SGaist said in Problem compiling QT 6 examples MSVC 2019: inline' not permitted on data declarations error:

        You should check which version of Visual Studio installed and update it in case it's not the latest. Or if so, use a previous version.

        Hi SGaist.
        Thanks by your response.
        I have installed Visual Studio 2019 Community Edition, version 16.8.4 with MSVC v142 - VS 2019 C++ for x64/x86 (v14.28) toolset.
        With MinGW there is not problem to compile.
        Thanks.

        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