qmetatype.h -> error: constexpr variable 'len' must be initialized by a constant expression
-
wrote on 8 Nov 2021, 08:22 last edited by Lillo 11 Aug 2021, 08:23
-
Try porting to Qt 5.15 first, it should print you some nice deprecation and porting messages during compilation and at runtime. This will help you fix the issues.
A wild guess in this case: Qt 6 requires Q_PROPERTY types to be fully qualified (not forward declared). Go through your properties and make sure it's true.
-
-
-
wrote on 2 Jan 2025, 07:53 last edited by alirezaa 1 Feb 2025, 07:57
@Lillo
I have just faced the same issue, when trying to port my project to Linux and using Qt 6.8.1.
I noticed, that you have marked this topic as solved; then could you please elaborate on how, you've managed to resolve this issue and what the exact cause was?
Many thanks, in advance -
@Lillo
I have just faced the same issue, when trying to port my project to Linux and using Qt 6.8.1.
I noticed, that you have marked this topic as solved; then could you please elaborate on how, you've managed to resolve this issue and what the exact cause was?
Many thanks, in advance -
1/5