[Interest] My experience porting to Qt5 (on OS X)

Thiago Macieira thiago.macieira at intel.com
Wed Sep 12 15:35:18 CEST 2012


On quarta-feira, 12 de setembro de 2012 16.20.01, Nikos Chantziaras wrote:
> On 02/09/12 14:38, Till Oliver Knoll wrote:
> > The effor was indeed very painless: in my case I mainly had to adjust a
> > few #include (<QtGui/Whatever> -> <QtWidgets/Whatever>) and change
> > QDir::convertSeparators to QDir::toNativeSeparators.
> 
> Note that if you just do:
> 
>    #include <Whatever>
> 
> then you can build with both Qt4 and Qt5.

And:
 DEFINES += QT_DISABLE_DEPRECATED_SINCE=0

Qt 5.0 final will not enable the deprecated API by default. You need to re-
enable it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120912/e0fa70e0/attachment.sig>


More information about the Interest mailing list