[Qt-interest] problem after using qt3to4
Mahmood Naderan
nt_mahmood at yahoo.com
Mon Jan 26 18:26:25 CET 2009
>It did, but you're apparently not building with Qt3Support enabled. Add
>QT+=qt3support to your .pro file(s).
I don't have .pro file. I am using Visual studio 2008.
I added QT3_SUPPORT as a preprocessor, but still get the same error.
--------------------
Mahmood Naderan
________________________________
From: Andreas Pakulat <apaku at gmx.de>
To: qt-interest at trolltech.com
Sent: Monday, January 26, 2009 7:54:22 PM
Subject: Re: [Qt-interest] problem after using qt3to4
On 26.01.09 08:00:16, Mahmood Naderan wrote:
> Hi,
> I use qt3to4 to change my cpp file for new version. In the previous version I had:
> class myClass : public QMainWindow
>
> Then, qt3to4 changed that to:
> class myClass : public Q3MainWindow
>
> without any modification when I compile it, I get some errors. The first and most important one is:
> error C2504: 'Q3MainWindow' : base class undefined.
>
> Why qt3to4 did not modify it correctly?
It did, but you're apparently not building with Qt3Support enabled. Add
QT+=qt3support to your .pro file(s).
Note: qt3to4 is not meant as an automatic conversion tool for Qt3 apps, it just
gives you a starting point by doing some of the easier search/replace stuff
thats needed to make your app compile with qt4.
Andreas
--
You will be the victim of a bizarre joke.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090126/6fa27781/attachment.html
More information about the Qt-interest-old
mailing list