Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-806

Range of SpinBox is not big enough if decimals is 3 or bigger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • QDS 1.3.0
    • None

    Description

      Range of SpinBox is not big enough if decimals is 3 or bigger

      Internally QtQuick.controls.SpinBox from Controls 2 uses integers.
      This means the SpinBox does not internally use floating point representation.
      This seriously limits the precision.
      If 3 decimals are required already a million is out of bounds.

      In other words:
      A 32 bit integer has roughly 10 digits.
      If subtract 3 digits for 3 decimals we are down to 7 digits.
      Since the integer is signed one million is already out of bounds.

      In 3D this will most likely be a problem unless we only allow a maximum of 2 decimals.

      Attachments

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

        Activity

          People

            henning Henning Gründl
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes