Questions tagged [qdoublespinbox]

Use this tag for questions about the QDoubleSpinBox class - part of the Qt framework that provides a spin box widget that takes doubles. When using this tag also include the more generic [qt] tag where possible.

20 questions
0
votes
3 answers

Creating a common slot for multiple instances of QDoubleSpinBox

I am trying to create a custom slot that can receive an int and pass it as a double to QDoubleSpinBox.SetValue(double); But I have a bunch of spinboxes in my UI so I would like to have a single slot that can have a DoubleSpinBox pointer as a…
JCSB
  • 345
  • 2
  • 16
0
votes
1 answer

Is there a way to change a spinbox's groupSeparator symbol?

I am looking for a way to force the groupSeparator symbol of a doublespinbox. For context, one of my programs uses an numerical input (doublespinbox) + unit choices (radio buttons) to form a number. It looks roughly like this: voltage [ 5 ] o V …
Guimoute
  • 4,407
  • 3
  • 12
  • 28
0
votes
0 answers

How to obtain exact input value of double in QDoubleSpinBox?

I need to get the exact input value of double spin box. I set 8 decimal digit for my Spinbox. When I type 0,6000000 what I get in the debug is 0,59999999999998 as in the picture (sometimes it is 0,6000000000002). I tried to convert this value to…
songvan
  • 369
  • 5
  • 21
-1
votes
1 answer

QDoubleSpinbox with editable unit (suffix)

I am trying to make a QDoubleSpinbox that allows for entering custom metric distances with units, e.g. "3.123 mm", "2.1 um", "10.567 m". Is there any way to convince QDoubleSpinbox to make the suffix editable?
knipknap
  • 5,934
  • 7
  • 39
  • 43
-1
votes
1 answer

Linking button to QDoubleSPinBox uisng slots

I have promoted a QDoubleSpinBox to SumDoubleSpinBox. I want to link now the click() event of a button to the spinBox , whenever the button is clicked the spinBox value should become 0.0. In the QT editor using Edit Signals / Slots i am linking the…
user8028736
1
2