How to solve the error in qrunnable.h?
-
Environment:QT 6.8.0-beta4 +Visual Studio 2022.
I can build my app successfully,but the erorr still shows in visual studio.
it says in D:\Qt\6.8.0\msvc2022_64\include\QtCore\qrunnable.h 24constexpr QRunnable() noexcept = default;"defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr”
How can i solve this?It almost drives me crazy! -
Environment:QT 6.8.0-beta4 +Visual Studio 2022.
I can build my app successfully,but the erorr still shows in visual studio.
it says in D:\Qt\6.8.0\msvc2022_64\include\QtCore\qrunnable.h 24constexpr QRunnable() noexcept = default;"defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr”
How can i solve this?It almost drives me crazy!@Lismoon said in How to solve the error in qrunnable.h?:
How can i solve this?
I don't think you can since it is in Qt code. You can report this on Qt developers mailing list or in Qt bug tracker. But I'm wondering why you're working with a beta version of Qt?
-
@Lismoon said in How to solve the error in qrunnable.h?:
How can i solve this?
I don't think you can since it is in Qt code. You can report this on Qt developers mailing list or in Qt bug tracker. But I'm wondering why you're working with a beta version of Qt?
-
-
@jsulm said in How to solve the error in qrunnable.h?:
In a beta version?
That line has been like that since Qt 6.0 and MSVC 2022 is a tested platform by the CI so the build is not broken.
This must be a problem with OP's system or configuration. Did you apply custom patches? how did you run
configure? -
@jsulm said in How to solve the error in qrunnable.h?:
In a beta version?
That line has been like that since Qt 6.0 and MSVC 2022 is a tested platform by the CI so the build is not broken.
This must be a problem with OP's system or configuration. Did you apply custom patches? how did you run
configure? -
@jsulm said in How to solve the error in qrunnable.h?:
Or is it a warning, not error?
Look like it's an intellisense message: https://bugreports.qt.io/browse/QTBUG-85644
Don't worry OP, it happens, it's all good, you can ignore the message. It's a Visual Studio bug, not a Qt one
-
@jsulm said in How to solve the error in qrunnable.h?:
Or is it a warning, not error?
Look like it's an intellisense message: https://bugreports.qt.io/browse/QTBUG-85644
Don't worry OP, it happens, it's all good, you can ignore the message. It's a Visual Studio bug, not a Qt one