In Qspinbox when I select 1 I want add 0 before 1 to be like 01 in the spinbox How can I do that?
sorry for my English.
thank you for your reply
In Qspinbox when I select 1 I want add 0 before 1 to be like 01 in the spinbox How can I do that?
sorry for my English.
thank you for your reply
Hi, you can reimplement QSpinBox::textFromValue() and QSpinBox::valueFromText() to format the displayed string the way you like. You might also have to reimplement QSpinBox::validate().
Ginsengelf
akkarachai (16th October 2019)
Bookmarks