我在QT41上运行
#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 );//error 
    hello.show();
    return a.exec();
}
    a.setMainWidget( &hello );---提示是什么QT3_support,难道QT不向下兼容吗????
[ 此贴被XChinux在2008-07-18 13:41重新编辑 ]