Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11950

QDial wrapping wraps at the wrong value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 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).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            daggerstab Bogdan Marinov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes