[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

qt3 "Hello World"



I'm trying to compile the Qt3 "Hello, World!" program [1] and get the 
following errors:

$ g++ test.cc 
test.cc:1: qapplication.h: No such file or directory
test.cc:2: qpushbutton.h: No such file or directory

If I define QTDIR to "/usr/share/qt" I get the same errors.

But I do have libqt3-dev installed and no libqt2-dev installed:

$ ll /usr/include/qt/qapplication.h 
-rw-r--r--    1 root     root        14261 Nov 24 02:18 
/usr/include/qt/qapplication.h

Any suggestions?

Thanks,
Jeremiah

[1]
#include <qapplication.h>
#include <qpushbutton.h>

int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );

    a.setMainWidget( &hello );
    hello.show();
    return a.exec();
}



Reply to: