Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.6.2
-
None
-
Ubuntu 10.04 Lucid Lynx, version of the Qt packages is 4.6.2-0ubuntu5
Description
When wrapping is enabled for a QDial, it wraps around at the maximum value, not after it: Instead of [min, max], the range of possible values is [min, max - step]. This is inconsistent with the wrapping behaviour of QAbstractSpinBox and the classes that inherit it.
For example, if one wants to create a control with all possible degree values in a circle that wraps around at 360, one could use:
- QSpinBox with minimum=0 and maximum=359 (on the next step after 359 it wraps around to 0)
- QDial with minimum=0 and maximum=360 (if the maximum is set to 359, the value of 359 is lost, as QDial connects the end of the dial to its beginning).