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. a question regarding Qt version

a question regarding Qt version

Scheduled Pinned Locked Moved General and Desktop
9 Posts 5 Posters 2.2k Views 4 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.
  • B Offline
    B Offline
    Batman
    wrote on last edited by
    #1

    if i wrote a code with Qt 5.3 will it compie with Qt 5.2?

    mrjjM 1 Reply Last reply
    0
    • B Batman

      if i wrote a code with Qt 5.3 will it compie with Qt 5.2?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Batman
      Hi and welcome
      Most of the time yes.
      From version to version sometimes codes are changed so one need to fix something.
      But such cases are often when jumping more than one version. like from 4.8 to 5.5

      From 5.3 to 5.2 should just work unless you find and use a feature first introduced in 5.3

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

        Hi and welcome to devnet,

        Unless you are using a feature introduced in 5.3, you can compile your code with an older version of the same major series (like your example 5.3 -> 5.2 but it goes back to 5.0) without any problem.

        Qt guaranties backward compatibility both source and binary for a major release lifetime, but again that stands if you don't use a feature introduced in a more recent version.

        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
        0
        • SeeLookS Offline
          SeeLookS Offline
          SeeLook
          wrote on last edited by
          #4

          You may have problems with loading translation files qt_xx.qm. They were split since 5.3.
          Also prefer to use "old" way of connecting signals and slots: SIGNAL/SLOT macros over newest one with method references.

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

            @SeeLook can you explain why the old syntax should be preferred ?

            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
            0
            • SeeLookS Offline
              SeeLookS Offline
              SeeLook
              wrote on last edited by
              #6

              I built my app for different Linux distributions. Whenever the build was against Qt 5.2, it failed on connect statements of some classes of mine (derived from QObject). So simple solution was to keep old format.
              I can't explain what was actually a source of this issue.

              JKSHJ 1 Reply Last reply
              0
              • SeeLookS SeeLook

                I built my app for different Linux distributions. Whenever the build was against Qt 5.2, it failed on connect statements of some classes of mine (derived from QObject). So simple solution was to keep old format.
                I can't explain what was actually a source of this issue.

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                @SeeLook said:

                I built my app for different Linux distributions. Whenever the build was against Qt 5.2, it failed on connect statements of some classes of mine (derived from QObject). So simple solution was to keep old format.
                I can't explain what was actually a source of this issue.

                Then I recommend you try to find out the source of this issue. It's not nice to tell others to use the old way without understanding why.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • SeeLookS Offline
                  SeeLookS Offline
                  SeeLook
                  wrote on last edited by
                  #8

                  Meanwhile I did....
                  The reason was that on those platforms compiler flag to use c++11 was not set by default. So my code was not able to use this new format without that.
                  Forgive me didn't realise that before.

                  JKSHJ 1 Reply Last reply
                  1
                  • SeeLookS SeeLook

                    Meanwhile I did....
                    The reason was that on those platforms compiler flag to use c++11 was not set by default. So my code was not able to use this new format without that.
                    Forgive me didn't realise that before.

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    @SeeLook said:

                    The reason was that on those platforms compiler flag to use c++11 was not set by default. So my code was not able to use this new format without that.

                    I'm glad you found it!

                    Forgive me didn't realise that before.

                    No problem :)

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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