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

robert lzw qtboost at gmail.com
Wed Oct 19 00:33:14 CEST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111018/a9304daf/attachment.html 


More information about the Qt-interest-old mailing list