Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://rtm-cs.sinp.msu.ru/manual/qt/qrangecontrol.html
Äàòà èçìåíåíèÿ: Sun Jul 12 02:58:58 1998 Äàòà èíäåêñèðîâàíèÿ: Mon Oct 1 20:48:53 2012 Êîäèðîâêà: |
The QRangeControl class provides an integer value within a range. More...
#include <qrangecontrol.h>
Inherited by QScrollBar, QSlider and QSpinBox.
This class has many functions to manipulate a value inside a range. It was specifically designed for the QScrollBar widget, but it can also be practical for other purposes.
The three virtual functions valueChange(), rangeChange() and stepChange() can be reimplemented in a subclass to detect range control changes.
Constructs a range control with min value 0, max value 99, line step 1, page step 10 and initial value 0.
Constructs a range control with the specified parameters.
Equivalent to
setValue( value()+lineStep() ).
See also: subtractLine().
Equivalent to
setValue( value()+pageStep() )
See also: subtractPage().
[protected]
Sets the range control value directly without calling valueChange().
Adjusts the value if it is less than the min value or greater than the max value.
See also: setValue().
Returns the current line step.
See also: setSteps() and pageStep().
Returns the current maximum value in the range.
See also: setRange() and minValue().
Returns the current minimum value in the range.
See also: setRange() and maxValue().
Returns the current page step.
See also: setSteps() and lineStep().
[protected]
Returns the previous range control value.
See also: value().
[virtual protected]
This virtual function is called whenever the range control range changes. You can reimplment it if you want to be notified when the range changes. The default implementation does nothing.
See also: setRange(), valueChange() and stepChange().
Reimplemented in QSlider and QScrollBar.
Sets the range min value to minValue and the max value to maxValue.
Calls the virtual rangeChange() function if the new min and max values are different from the previous setting. Calls the virtual valueChange() function if the current value is outside the new range and has to be adjusted.
See also: minValue() and maxValue().
Examples: xform/xform.cpp
Sets the range line step to lineStep and page step to pageStep.
Calls the virtual stepChange() function if the new line step and/or page step are different from the previous setting.
See also: setRange().
Sets the range control value to value.
Adjusts the value if it is less than the min value or greater than the max value.
Calls the virtual valueChange() function if the value is different from the previous value.
[virtual protected]
This virtual function is called whenever the range control step value changes. You can reimplment it if you want to be notified when the step changes. The default implementation does nothing.
See also: setSteps(), rangeChange() and valueChange().
Reimplemented in QScrollBar.
Equivalent to
setValue( value()-lineStep() ).
See also: addLine().
Equivalent to
setValue( value()-pageStep() )
See also: addPage().
Returns the current range control value.
See also: setValue() and prevValue().
Examples: xform/xform.cpp
[virtual protected]
This virtual function is called whenever the range control value changes. You can reimplment it if you want to be notified when the value changes. The default implementation does nothing.
See also: setValue(), addPage(), subtractPage(), addLine(), subtractLine(), rangeChange() and stepChange().
Reimplemented in QSlider and QScrollBar.
Search the documentation, FAQ, qt-interest archive and more (uses
www.troll.no):
This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.
It was generated from the following files:
Copyright © 1998 Troll Tech | Trademarks | Qt version 1.40
|