| Home | ![]() |
The QtThumbWheel widget provides a vertical or horizontal thumb-wheel widget. More...
#include <qtthumbwheel.h>
The QtThumbWheel widget provides a vertical or horizontal thumb-wheel widget.
The widget is often used in 2D and 3D applications to control rotation, zooming and scrolling. The rotation of the thumb-wheel is translated into an integer value within a specified range.
QtThumbWheel inherits QRangeControl, which provides the "integer" component of the thumb-wheel. setRange() and value() are likely to be used by practically all thumb-wheel users; see the QRangeControl documentation for information about the many other functions that class provides.
The main functions provided by the thumb-wheel are the transmission ratio, cog and wrap around controls; you can use setTransmissionRatio() to adjust the ratio of the speed of the wheel to the speed at which the value changes, and setCogCount() to set the number of cogs on the wheel. Use setOrientation() to indicate whether the thumb-wheel is vertically or horizontally oriented.
A thumb-wheel accepts focus on Tab and supports the mouse wheel. It also provides a keyboard interface.
See also
Returns sets the number of cogs on the thumb-wheel (the default is 17). See the "cogCount" property for details.
Returns the thumb-wheel's maximum value. See the "maxValue" property for details.
Returns the thumb-wheel's minimum value. See the "minValue" property for details.
Returns the orientation of the widget: either Vertical or Horizontal. See the "orientation" property for details.
Sets sets the number of cogs on the thumb-wheel (the default is 17) to c. See the "cogCount" property for details.
Sets the thumb-wheel's maximum value to v. See the "maxValue" property for details.
Sets the thumb-wheel's minimum value to v. See the "minValue" property for details.
Sets the orientation of the widget: either Vertical or Horizontal. See the "orientation" property for details.
Example: ../simple/main.cpp.
Sets whether the display should be updated during mouse moves to enable. See the "tracking" property for details.
Sets the transmission ratio between the thumb-wheel and the value range to r. See the "transmissionRatio" property for details.
Sets whether the values should wrap around to enabled. See the "wrapsAround" property for details.
Returns TRUE if the display should be updated during mouse moves; otherwise returns FALSE. See the "tracking" property for details.
Returns the transmission ratio between the thumb-wheel and the value range. See the "transmissionRatio" property for details.
This signal is emitted when the value of the thumb-wheel changes. value is the new value.
Example: ../simple/main.cpp.
Returns TRUE if the values should wrap around; otherwise returns FALSE. See the "wrapsAround" property for details.
This property holds sets the number of cogs on the thumb-wheel (the default is 17).
Use this property to adapt the number of cogs to the size of the wheel. The property only has a visual effect.
Set this property's value with setCogCount() and get this property's value with cogCount().
This property holds the thumb-wheel's maximum value.
Set this property's value with setMaxValue() and get this property's value with maxValue().
This property holds the thumb-wheel's minimum value.
Set this property's value with setMinValue() and get this property's value with minValue().
This property holds the orientation of the widget: either Vertical or Horizontal.
Set this property's value with setOrientation() and get this property's value with orientation().
This property holds whether the display should be updated during mouse moves.
Set this property's value with setTracking() and get this property's value with tracking().
This property holds the transmission ratio between the thumb-wheel and the value range.
The default ratio is 1.0, which means that the user must turn the wheel 360 degress (one full spin) to go from minValue to maxValue. Giving a ratio of 2.0 will require the user to spin the wheel twice times to cross the same range, and a value of 0.5 will require only half a turn.
Set this property's value with setTransmissionRatio() and get this property's value with transmissionRatio().
This property holds whether the values should wrap around.
If enabled, when the value exceeds maxValue, it is reset to minValue, and when the value goes below minValue, it is reset to maxValue value. This is useful when the thumb-wheel should not stop at the minimum and maximum value boundaries.
Set this property's value with setWrapsAround() and get this property's value with wrapsAround().
This file is part of the Qt Solutions.
Copyright © 2003-2006
Trolltech. All Rights Reserved.
| Copyright © 2003-2006 Trolltech | Trademarks | Qt Solutions
|