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. Use Qt 5 or Qt 4 for new project?
Forum Updated to NodeBB v4.3 + New Features

Use Qt 5 or Qt 4 for new project?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.1k Views 1 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.
  • U Offline
    U Offline
    user001
    wrote on last edited by
    #1

    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?
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Consult the official "Porting Guide":http://qt-project.org/doc/qt-5.0/qtdoc/portingguide.html and a separate "wiki":http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5.

      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.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kobid
        wrote on last edited by
        #3

        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!)

        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