PDA

View Full Version : How to get Qt3 methodes in Qt 5.



sudhansu
22nd December 2009, 08:06
Hi All
I'm using 4.5.3 version. In mky code i've added a methode QPaintDevice::x11AppVisual().
x11AppVisual() is a Qt 3 member function, and its supported by Qt 4.5.3. But while compiling the code i'm getting the error like
error: ‘x11AppVisual’ is not a member of ‘QPaintDevice’

How to solve this.???

PS : http://doc.trolltech.com/4.3/qpaintdevice-qt3.html

faldzip
22nd December 2009, 13:55
add:


QT += qt3support

to your pro file

sudhansu
23rd December 2009, 05:38
add:


QT += qt3support

to your pro file
Thanx. it worked.
and also we ve to add

#include <Qt3Support>
to our headed file.