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 Source Forward Compatibility for Minor Updates
Forum Updated to NodeBB v4.3 + New Features

Qt Source Forward Compatibility for Minor Updates

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 644 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.
  • C Offline
    C Offline
    Crag_Hack
    wrote on last edited by
    #1

    As per here it's obvious Qt patch updates are forward and backward source compatible and minor updates are backward source compatible. When testing in a newer Qt version than you deploy in (in my case the version of Qt Creator I have installed uses a newer version of Qt than the static build I use for deployment of the final executable, 5.15.2 vs 5.12.11), as long as you don't use removed or new functionality in your program during testing does that mean minor updates are forward source compatible for the code you used?

    Aren't there only three scenarios possible for code changes in a minor update: new functionality, removed functionality, and functionality that is the same?

    So assuming you avoid new and (impossible not to avoid) removed functionality shouldn't the program compile and work fine in an older version of Qt than it was tested in?

    Not sure how rare the scenario for which this topic is relevant is; I'm currently running Qt Creator with a newer version of Qt than my static build used for final deployment.

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

      If your program compile with Qt5.x then it will also compile with Qt5.x+n (n >=0)

      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
      • C Offline
        C Offline
        Crag_Hack
        wrote on last edited by
        #3

        Thanks Christian, but how about the other way around?

        Christian EhrlicherC 1 Reply Last reply
        0
        • C Crag_Hack

          Thanks Christian, but how about the other way around?

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

          @Crag_Hack said in Qt Source Forward Compatibility for Minor Updates:

          but how about the other way around?

          Can not be guaranteed and must be handled by yourself.

          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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            As long as you use methods that are available in the previous versions you are fine.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Christian EhrlicherC 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              As long as you use methods that are available in the previous versions you are fine.

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

              @SGaist said in Qt Source Forward Compatibility for Minor Updates:

              As long as you use methods that are available in the previous versions you are fine.

              But this is exactly what I said in my first post so I don't understand this question :)

              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
              • C Offline
                C Offline
                Crag_Hack
                wrote on last edited by
                #7

                Thanks guys.
                @Christian-Ehrlicher Didn't you describe backwards compatibility instead of forwards compatibility though?

                Christian EhrlicherC 1 Reply Last reply
                0
                • C Crag_Hack

                  Thanks guys.
                  @Christian-Ehrlicher Didn't you describe backwards compatibility instead of forwards compatibility though?

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

                  @Crag_Hack said in Qt Source Forward Compatibility for Minor Updates:

                  Didn't you describe backwards compatibility instead of forwards compatibility though?

                  No, n is positive.

                  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
                  • C Offline
                    C Offline
                    Crag_Hack
                    wrote on last edited by
                    #9

                    Either I'm mixed up or you're mixed up ha :) ... anybody care to chime in? Isn't backwards compatibility when a program compiled say in 5.12.11 will work with 5.15.2? And forwards compatibility when a program compiled in 5.15.2 will work with 5.12.11?

                    1 Reply Last reply
                    0
                    • E Offline
                      E Offline
                      Ewan Green
                      wrote on last edited by
                      #10

                      Backwards compatibility is what Qt does by allowing new Qt versions to compile code made for previous ones.
                      Forward compatibility is what they do by being hesitant to introduce new APIs and methods.

                      Say you write a program originally intended for use with Qt 5.12.11. Qt 5.15.2 is being backwards-compatible by not having any user-facing API changes major enough to inhibit compilation of their existing code, even if it's different under the hood. Qt 5.12.11 is forward-compatible in the same sense.

                      Ewan Green

                      1 Reply Last reply
                      0

                      • Login

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