怎样追加一个按钮:
QHBoxLayout *layout = new QHBoxLayout();
QWidget* myWidget = new QWidget(this);
QPushButton hello( "Hello world!", 0 );
hello.resize( 500, 200 );
myWidget->setAutoFillBackground(true);
myWidget->setFixedWidth(300);
myWidget->setPalette(Qt::red);
layout->addWidget(myWidget);
菜鸟报到,大虾们指点一下迷经。。