December 8, 2011

andreagrandi andreagrandi
Lab Rat
6 posts

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!

3 replies

December 8, 2011

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

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

December 8, 2011

andreagrandi andreagrandi
Lab Rat
6 posts

Hi Tobias!

Tobias Hunger wrote:
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;-)

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

October 28, 2013

arya_sreek arya_sreek
Lab Rat
23 posts

Usually in $(QT_DIR)/qtbase/bin

But I couldnt find one…

 
  ‹‹ Problem in playing the audio back from Microphone to Speaker      <SOLVED> Text editor found text is not visible. ››

You must log in to post a reply. Not a member yet? Register here!