[Qt-interest] [Qt-Interest] [qvbox.h and qhbox.h] Compiling Legacy Qt Code

Malyushytsky, Alex alex at wai.com
Wed Oct 19 01:09:39 CEST 2011


I don't think there is enough information to provide a good advice,
but if you done nothing to convert Qt 3 to Qt 4 project,
it will not work.

There is qt3to4 porting tool which you may try to use,
but even though it  allows to covert simple projects,
most of the time you will need to fix pieces of the code and the code you will end up with
will have nothing to do with your original Qt 3 code.

The Qt3support classes are NOT qt3 classes so if you extended such class functionality in Qt3
your code will have to be modified a lot and it is often either and faster
to write it from the scratch using native Qt4 classes.
In any case such conversion is time consuming.

If you did such conversion try to check if your Qt4 is compiled with Qt3 support

Regards,
    Alex



From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of robert lzw
Sent: Tuesday, October 18, 2011 3:33 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] [Qt-Interest] [qvbox.h and qhbox.h] Compiling Legacy Qt Code

Hi, there,

Using Qt4, I have problem compiling a legacy Qt 3 project that:

#include <qhbox.h>
#include <qvbox.h>

I tried:
#include <Qt3Support/Q3HBox>
#include <Qt3Support/Q3VBox>

it does not compile. Then I download "qhbox.h" and "qvbox.h" head files and physically copied and pasted them into my project, and then
#include "qhbox.h"   // search for the local copy in my project
#include "qvbox.h"

However, the compiling error now points to "class Q_EXPORT QHBox : public QFrame" inside the "qhbox.h" complaining:
"expect initialization before ':' token"

How can I get this project compiled? Thank you in advance.

Robert




---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111018/adc7c517/attachment.html 


More information about the Qt-interest-old mailing list