[Interest] My experience porting to Qt5 (on OS X)
stephen.kelly at kdab.com
Wed Sep 12 18:17:35 CEST 2012
On Wednesday, September 12, 2012 09:13:20 Chris Meyer wrote:
> On Wed, Sep 12, 2012 at 6:20 AM, Nikos Chantziaras <realnc at gmail.com> 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.
> I noticed that there are a few headers that are required in Qt5 but
> not available in Qt4.
> For example, if I want to use QTestEventList::simulate(...):
> #include <QtTest>
> #include <QtTestWidgets>
#include <QtTest> works just fine in Qt 5. It includes the same stuff as
<QtTestWidgets> if QT_WIDGETS_LIB is set, which it is if you use QT +=
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part.
More information about the Interest