Use Qt 5 or Qt 4 for new project?

  • We may use Qt for a new project. We have some components from partner who is still using Qt 4. My questions are those:

    1. is it a good idea using Qt 5 for new components
    2. are there any issues using new components, which are built by using Qt5, with old components, which were built with Qt 4?
    3. convert their Qt4 components to Qt 5 is a big job? Their old components are mainly handle medical image display.
    4. anywhere we can find the summary of differences between Qt4 and Qt5, and what changes need to be done to port a Qt 4 project to Qt 5?

  • Moderators

    Consult the official "Porting Guide": and a separate "wiki":

    For most projects the process is pretty straightforward. I've ported a suite of 5 applications (~30 kLOC) in about 2 hours. There are some corner cases where it can take longer, though.

    As for using components from Qt4 - that depends. If you can port them to Qt5, you are fine. If you, however, only have access to the binaries (DLLs), then the answer is no: Qt4 and Qt5 are not binary compatible.

  • What I noticed is problem with Oxygen style on KDE. KDE is compiled with Qt4, so Qt5 can't load Oxygen plugin (Fusion style is default). But those are only "eye" differences. On other platform everything look native
    You may also notice that there is quite difference in multimedia. There is no phonon in Qt5 (finally!)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.