Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
src_gui_widgets_qabstractspinbox.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
QSpinBox
*
spinBox
=
new
QSpinBox
(
this
);
6
spinBox
->
setRange
(0, 100);
7
spinBox
->
setWrapping
(
true
);
8
spinBox
->
setValue
(100);
9
spinBox
->
stepBy
(1);
10
// value is 0
QAbstractSpinBox::stepBy
virtual void stepBy(int steps)
Virtual function that is called whenever the user triggers a step.
Definition
qabstractspinbox.cpp:611
QAbstractSpinBox::setWrapping
void setWrapping(bool w)
Definition
qabstractspinbox.cpp:270
QSpinBox
The QSpinBox class provides a spin box widget.
Definition
qspinbox.h:16
QSpinBox::setValue
void setValue(int val)
Definition
qspinbox.cpp:192
QSpinBox::setRange
void setRange(int min, int max)
Convenience function to set the minimum, and maximum values with a single function call.
Definition
qspinbox.cpp:381
spinBox
QSpinBox * spinBox
[0]
Definition
src_gui_widgets_qabstractspinbox.cpp:5
qtbase
src
widgets
doc
snippets
code
src_gui_widgets_qabstractspinbox.cpp
Generated by
1.9.7