[odb-users] Using ODB Qt Profile Library w/ Qt5
Jordan J. Neuhart
jneuhart at tlirr.com
Mon Feb 4 16:35:43 EST 2013
Boris,
Whenever I try to build and run the tests I get this error:
c:\odb\libodb-qt-2.1.1\odb\qt\date-time\sqlite\qdate-traits.hxx(44):
error C2039: 'fromAscii' : is not a member of 'QString'
c:\qt\qt5.0.1\5.0.1\msvc2010\include\qtcore\qstring.h(208) : see
declaration of 'QString'
This is in Visual Studio, and I am using version 5.0.1 of Qt. Reading
the Qt documentation, I see that QString::fromAscii has been deprecated.
Has this been fixed in newer builds of ODB?
Thanks,
Jordan Neuhart
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Sunday, February 03, 2013 10:24 AM
To: Jordan J. Neuhart
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Using ODB Qt Profile Library w/ Qt5
Hi Jordan,
Jordan J. Neuhart <jneuhart at tlirr.com> writes:
> Does anyone know how to get the Qt Profile library to work with Qt5 on
> windows? Right now, it won't build because the VC++ solution has a
> linker dependency for QtCore4.dll. Changing this to Qt5Core.dll seems
> to let the project build, but I'm not sure if there is more to be
done.
Good questions. To answer it I just ran all the test in the test suite
against Qt5 and everything worked fine out of the box. So looks like all
you need to do is change the linker dependency.
We also plan to support Qt5 "officially" with the next release of ODB
(coming out in a week or two). This will include a set of VC++ project/
solution files for Qt5 in addition to Qt4.
Boris
More information about the odb-users
mailing list