17 QComboBox* pcbo =
new QComboBox;
18 QSpinBox* pspb =
new QSpinBox;
19 QSlider* psld =
new QSlider(Qt::Horizontal);
20 QRadioButton* prad =
new QRadioButton(
"&Radio Button");
21 QCheckBox* pchk =
new QCheckBox(
"&Check Box");
22 QPushButton* pcmd =
new QPushButton(
"&Push Button");
24 pcbo->addItems(QStyleFactory::keys());
27 SIGNAL(activated(
const QString&)),
32 QVBoxLayout* pvbxLayout =
new QVBoxLayout;
33 pvbxLayout->addWidget(pcbo);
34 pvbxLayout->addWidget(pspb);
35 pvbxLayout->addWidget(psld);
36 pvbxLayout->addWidget(prad);
37 pvbxLayout->addWidget(pchk);
38 pvbxLayout->addWidget(pcmd);
39 setLayout(pvbxLayout);
45 QStyle* pstyle = QStyleFactory::create(str);
46 QApplication::setStyle(pstyle);
void slotChangeStyle(const QString &str)
MyApplication(QWidget *pwgt=0)