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

Get spinbox cursor position

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.15.2
    • None

    Description

      I am trying to make a QDoubleSpinBox that behaves as a Numerical Control in LabVIEW would.

      Allow me to explain: In the LabView UI, the amount to increment/decrement is dependent on the position of the cursor. Consider a value of "10.2". If the cursor is on the decimal 2, then an incremental step would be 0.1; if it was on the 0 the value would be incremented by 1; and finally if the cursor position was on the 10, the value would be incremented by 10.

      If this behavior were added to QT, the most logical place for it would be perhaps the stepType property of the QDoubleSpinBox, but that would require someone to create a new stepType for the spinbox, and I am not qualified to do that.
      However, I feel confident of my ability to achieve this if the cursor position inside the spinbox would be available to me. So that is the background of my feature request.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            victorclaessen Victor Claessen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes