Results 1 to 11 of 11

Thread: Applications built for different QT versions

  1. #1
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Applications built for different QT versions

    ...but of course on the same machine.

    If I already have a QT 4.0.1 DLL installed on a machine, can I safely replace it with a QT 4.5.2 DLL? Is compatibility assured, or a matter of how lucky you are?

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Applications built for different QT versions

    4.0 is not compatible with 4.5 as far as i remember.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Applications built for different QT versions

    The easiest way is to simply try In general it should work although the application may behave differently due to changes in the libraries.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Applications built for different QT versions

    Quote Originally Posted by wysota View Post
    The easiest way is to simply try In general it should work although the application may behave differently due to changes in the libraries.
    Unfortunately, it's not as simple as that. Oh, as long as I am just a developer, tinkering around, it is. But once I start to think about deployment, things could get ugly.

    Consider Application Suite A, written by company X with QT 4.0
    Consider Application Suite B, written by company Y with QT 4.5

    If I deploy my App Suite B, I can't just ruin App Suite A by installing the new DLLs, especially when both applications are expected to work together. I also can't just "hope" that things will work with the new DLL version, this would have to be verified with (probably) weeks of testing.

    If the DLLs are not compatible, Trolltech (or QT Software or whatever name they have right now) would do well to give the DLLs different names, so you can use them in parallel.

    But I see this is something to discuss with them directly prior to obtaining a commercial license.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Applications built for different QT versions

    Both applications can have their own Qt libs. Just copy the version you want to be used to the directory containing the application binary and it will use it. But anyway 4.0 and 4.5 should be binary compatible (of course it won't work the other way round).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Applications built for different QT versions

    Quote Originally Posted by wysota View Post
    (of course it won't work the other way round).
    Already noticed that the hard way!

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Applications built for different QT versions

    Well... obviously classes introduced in Qt 4.5 were not present in Qt 4.0 dlls
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Applications built for different QT versions

    Quote Originally Posted by MrDeath View Post
    4.0 is not compatible with 4.5 as far as i remember.
    Aren't Qt releases with the same major version number supposed to be compatible? So it should be possible to replace an older release with a newer one (if not, I would consider this a bug...)

  9. #9
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Applications built for different QT versions

    Quote Originally Posted by rexi View Post
    Aren't Qt releases with the same major version number supposed to be compatible? So it should be possible to replace an older release with a newer one (if not, I would consider this a bug...)
    That's what I hope.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Applications built for different QT versions

    Quote Originally Posted by rexi View Post
    Aren't Qt releases with the same major version number supposed to be compatible?
    No, that's true about minor version. They are binary compatible (both ways).

    So it should be possible to replace an older release with a newer one (if not, I would consider this a bug...)
    Yes, it's possible this way (at least should be) as Qt keeps backward binary compatibility across minor versions too.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Applications built for different QT versions

    Quote Originally Posted by wysota View Post
    Yes, it's possible this way (at least should be) as Qt keeps backward binary compatibility across minor versions too.
    Ok, I did express myself wrong This was what I actually meant. I just forgot the little word "backward". Replacing an old version with a newer one should work, the other way round obviously does not, because of added features in newer versions, as you already stated.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.