19 m_pprb =
new QProgressBar;
20 m_pprb->setRange(0, 5);
21 m_pprb->setMinimumWidth(200);
22 m_pprb->setAlignment(Qt::AlignCenter);
24 QPushButton* pcmdStep =
new QPushButton(
"&Step");
25 QPushButton* pcmdReset =
new QPushButton(
"&Reset");
27 QObject::connect(pcmdStep, SIGNAL(clicked()), SLOT(
slotStep()));
28 QObject::connect(pcmdReset, SIGNAL(clicked()), SLOT(
slotReset()));
31 QHBoxLayout* phbxLayout =
new QHBoxLayout;
32 phbxLayout->addWidget(m_pprb);
33 phbxLayout->addWidget(pcmdStep);
34 phbxLayout->addWidget(pcmdReset);
35 setLayout(phbxLayout);
41 m_pprb->setValue(++m_nStep);
Progress(QWidget *pobj=0)