0

QAbstractSpinBox | how it interacts without valuefromtext and textfromvalue

For QT, we have QSpinBox Class to work with integer values and QDoubleSpinBox to work with double value. Both these have valuefromtext and textfromvalue function having int and double arguments. If I am not wrong, these two functions are responsible in Spinbox to display value from UI and store value internally from UI. Question is about QAbstractSpinBox. This class has none of these two methods. If I want to have my custom class derived from QAbstractSpinBox , what mechanism to be provided so that I can have this class working for me? I need this custom class for unsigned int.

21st Sep 2024, 12:51 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Answer
0
perhaps you can get some idea from this discussion? https://stackoverflow.com/questions/8383620/64bit-int-spin-box-in-qt
23rd Sep 2024, 12:40 AM
Bob_Li
Bob_Li - avatar