Пример #1
0
//! [0]
Window::Window()
{
    createSpinBoxes();
    createDateTimeEdits();
    createDoubleSpinBoxes();

    QHBoxLayout *layout = new QHBoxLayout;
    layout->addWidget(spinBoxesGroup);
    layout->addWidget(editsGroup);
    layout->addWidget(doubleSpinBoxesGroup);
    setLayout(layout);

    setWindowTitle(tr("Spin Boxes"));
}
Пример #2
0
///
///
/// \param parent
///
Window::Window(QWidget *parent) : QWidget(parent) {
  createSpinBoxes();
  createDateTimeEdits();
  createDoubleSpinBoxes();
  setMyStyleSheet();

  QHBoxLayout *layout = new QHBoxLayout;
  layout->addWidget(spinBoxesGroup);
  layout->addWidget(editsGroup);
  layout->addWidget(doubleSpinBoxesGroup);
  this->setLayout(layout);

  this->setWindowTitle(tr("Spin Boxes"));
  this->setFixedSize(sizeHint());
}