What are the main differences when porting code from Qt4 to Qt5?



  • Hi all,

    I'm currently investigating how much effort we would need to port the Ubuntu Unity-2D, from Qt4 to Qt5.

    I know that Qt5 aren't ready yet and I don't expect to find that they're stable nor without bugs.
    But I suppose that the base is already there and I could start understanding which kind of changes our code will need to be compatible with Qt5.

    We can just run something written for Qt4 using Qt5 libraries?
    We can recompile it with Qt5?

    What are the main differences of Qt5 to pay attention to when porting from Qt4?

    Thanks for your help!


  • Moderators

    When porting Qt Creator to Qt 5 the most issues were fixed by running the fixheaders.pl script. Modules moved around, so e.g. the widgets are now in QtWidget (or something) and no longer in QtGui.

    Apart from that only two small changes were needed.

    Note: We will use the latest released Qt version for Qt Creator. That is not Qt 5 at this time, so do not expect a Qt5 ready Qt Creator in the master branch;-)



  • Hi Tobias!

    [quote author="Tobias Hunger" date="1323363394"]When porting Qt Creator to Qt 5 the most issues were fixed by running the fixheaders.pl script. Modules moved around, so e.g. the widgets are now in QtWidget (or something) and no longer in QtGui.

    Apart from that only two small changes were needed.

    Note: We will use the latest released Qt version for Qt Creator. That is not Qt 5 at this time, so do not expect a Qt5 ready Qt Creator in the master branch;-)[/quote]

    that script could be very useful for me, could you please tell me where I can find it?
    Thanks for your help!



  • Usually in $(QT_DIR)/qtbase/bin

    But I couldnt find one...


Log in to reply
 

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