Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Incompatibility between Enums generated by Qt creator.
Qt 6.11 is out! See what's new in the release blog

Incompatibility between Enums generated by Qt creator.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 274 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Lucas_Gean
    wrote last edited by
    #1

    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?

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

      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 ?

      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
      • L Offline
        L Offline
        Lucas_Gean
        wrote last edited by Lucas_Gean
        #3

        It was a issue with the Qt Creator version. Using the same Qt Creator Version the editor does not generate different enums.

        1 Reply Last reply
        0
        • L Lucas_Gean has marked this topic as solved

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved