4 QHBoxLayout* layout =
new QHBoxLayout(
this);
5 layout->setContentsMargins(0, 0, 0, 0);
7 spin =
new QDoubleSpinBox(
this);
8 spin->setRange(-10000000.0, 10000000.0);
10 spin->setSuffix(suffix);
11 spin->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
13 layout->addWidget(spin);