QPushButton hellobtn( "Hello world!", 0 );

来源:互联网 发布:天猫竞品数据分析表格 编辑:程序博客网 时间:2024/06/05 06:05
#include <qapplication.h>#include <qpushbutton.h>int main( int argc, char **argv ){QApplication a( argc, argv );QPushButton hellobtn( "Hello world!", 0 );hellobtn.resize(100, 20 );//a.setMainWidget( &hellobtn );hellobtn.show();return a.exec();}

原创粉丝点击