Incompatibility between Enums generated by Qt creator.
-
Greetings,
I am working on a Qt project that was developed on Qt Creator v11.0.1, using Qt v6.5.2.
I am editing it on Qt Creator v19.0.2, using Qt v6.5.2. However, I have compatibility issues with the generated *.ui files.For example:
In the old project I have have a widget with the following property:
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>When I open the same file on Qt Creator v19.0.2, the editor adds extra enums in the *.ui file.
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>Is the difference of Enums caused by using a different version of the Qt Creator? Or could it be a project that is not properly configured?
-
Hi,
If memory serves well, with recent versions of Qt, enum are used with the full qualification.
Are you using the same version of Qt to build both version of your application ? -
It was a issue with the Qt Creator version. Using the same Qt Creator Version the editor does not generate different enums.
-
L Lucas_Gean has marked this topic as solved