예제 #1
0
파일: window.cpp 프로젝트: eagafonov/qtmoko
//! [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
파일: window.cpp 프로젝트: Jinxiaohai/QT
///
///
/// \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());
}