[Qt] Laying Out Widget: SpinBox and Slider

Today, I learn to how to set a layout for QWidget.

In this layout, I add two widgets SpinBox and Slider for Window .

The two widgets should be connected each other by QObject::connect method.

When user scroll the Slider widget, the value in SpinBox will be changed in real time.

發佈留言