Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Designer ui code Qt 6.7 versus Qt 5.15
Forum Updated to NodeBB v4.3 + New Features

Qt Designer ui code Qt 6.7 versus Qt 5.15

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 924 Views 3 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
    Liviu Lalescu
    wrote on last edited by
    #1

    Hello,

    Working on my software with Qt 6.7 Designer (as opposed to Qt 6.6.3), I modified the main form, and I saw that some properties in the XML ui file changed from e.g.: Qt::Vertical to Qt::Orientation::Vertical. Compiling with Qt 6.7, my application is OK, but compiling with Qt 5.15 the application appears a bit ugly, because the QSpacer's vertical orientation is not correctly read. Also, if I try to open this ui file with Qt 5.15 Designer I get the corresponding warnings/noncritical errors.

    Is this intended? I saw that also Qt 6.8 beta has the same new ui structure.

    My application is on https://lalescu.ro/liviu/fet/ , where I provide the sources, a precompiled version for Windows, macOS, and GNU/Linux with Qt 6.7.2 (for now) and with Qt 5.15.14 for Windows 64bit and 32bit (for now), if you want to check it. The main form has a frame around some shortcut buttons, and on Qt 5.15 they appear ugly if you maximize the main form.

    Thank you!

    Christian EhrlicherC 1 Reply Last reply
    0
    • L Liviu Lalescu

      Hello,

      Working on my software with Qt 6.7 Designer (as opposed to Qt 6.6.3), I modified the main form, and I saw that some properties in the XML ui file changed from e.g.: Qt::Vertical to Qt::Orientation::Vertical. Compiling with Qt 6.7, my application is OK, but compiling with Qt 5.15 the application appears a bit ugly, because the QSpacer's vertical orientation is not correctly read. Also, if I try to open this ui file with Qt 5.15 Designer I get the corresponding warnings/noncritical errors.

      Is this intended? I saw that also Qt 6.8 beta has the same new ui structure.

      My application is on https://lalescu.ro/liviu/fet/ , where I provide the sources, a precompiled version for Windows, macOS, and GNU/Linux with Qt 6.7.2 (for now) and with Qt 5.15.14 for Windows 64bit and 32bit (for now), if you want to check it. The main form has a frame around some shortcut buttons, and on Qt 5.15 they appear ugly if you maximize the main form.

      Thank you!

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Liviu-Lalescu said in Qt Designer ui code Qt 6.7 versus Qt 5.15:

      Is this intended?

      Qt5 and Qt6 differ - yes, so do the ui files.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Liviu Lalescu
        wrote on last edited by
        #3

        Thank you, @Christian-Ehrlicher ! However, I have to remark that Qt 6.6.3 Designer saves in the old format, compatible with Qt 5.15. Also, I can see at the beginning of the ui file that it is <ui version="4.0"> in the old (Qt 5.15, Qt 6.6.3) and in the new format (Qt 6.7, Qt 6.8).

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          If you think it's a bug the report it at bugreports.qt.io but as I said - the enums changed from Qt5 to Qt6 and now the deprecated ones were removed/no longer used by designer I would guess.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Liviu Lalescu
            wrote on last edited by
            #5

            I am not sure it is a bug. According to this: https://doc.qt.io/qt-6/qt.html#Orientation-enum , the property is still "Qt::Vertical", not "Qt::Orientation::Vertical", but Qt Designer from Qt 6.7 and Qt 6.8 chose to write in the ui XML as "Qt::Orientation::Vertical".

            PS: I don't get email notifications for new replies. Can I correct this?

            Pl45m4P Christian EhrlicherC 2 Replies Last reply
            0
            • L Liviu Lalescu

              I am not sure it is a bug. According to this: https://doc.qt.io/qt-6/qt.html#Orientation-enum , the property is still "Qt::Vertical", not "Qt::Orientation::Vertical", but Qt Designer from Qt 6.7 and Qt 6.8 chose to write in the ui XML as "Qt::Orientation::Vertical".

              PS: I don't get email notifications for new replies. Can I correct this?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by Pl45m4
              #6

              @Liviu-Lalescu said in Qt Designer ui code Qt 6.7 versus Qt 5.15:

              PS: I don't get email notifications for new replies. Can I correct this?

              Check your profile settings (click here).
              You can set what notifications you want to receive and where (Forum, Email, Both, etc)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              1
              • L Liviu Lalescu

                I am not sure it is a bug. According to this: https://doc.qt.io/qt-6/qt.html#Orientation-enum , the property is still "Qt::Vertical", not "Qt::Orientation::Vertical", but Qt Designer from Qt 6.7 and Qt 6.8 chose to write in the ui XML as "Qt::Orientation::Vertical".

                PS: I don't get email notifications for new replies. Can I correct this?

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Liviu-Lalescu said in Qt Designer ui code Qt 6.7 versus Qt 5.15:

                I am not sure it is a bug

                Simply create one. After all the explanations I am not sure if I am still correct here.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Liviu Lalescu
                  wrote on last edited by
                  #8

                  Thank you both! I will create a bug report.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Liviu Lalescu
                    wrote on last edited by
                    #9

                    https://bugreports.qt.io/browse/QTBUG-126966

                    1 Reply Last reply
                    1
                    • Christian EhrlicherC Christian Ehrlicher referenced this topic on

                    • Login

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