qmetatype.h -> error: constexpr variable 'len' must be initialized by a constant expression
Solved
Qt 6
-
Hello, i have a QT3D project made in QT5.14.2 and i wanted to be able to run it in with Qt6.2, but in the build step i have this error in the qt file qmetatype.h. If someone can help me i would appreciate it very much. I attach a screenshot with the error.
-
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.
-
-