[Qt-interest] problem after using qt3to4
Andreas Pakulat
apaku at gmx.de
Mon Jan 26 17:24:22 CET 2009
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.
More information about the Qt-interest-old
mailing list