QSpinBox improper behaviour
-
I have set a range for spinbox 10 to 50,and when 2 is entered in the spinBox and cursor is moved its setting to 22,12 ,...random values.What could be the reason?
-
Hi,
Please show a sample code the exhibit this behaviour.
What version of Qt are you using ?
On what platform ? -
@Sriu1 said in QSpinBox improper behaviour:
Based on Qt 5.9.3 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
That sounds rather like the Qt version used to build Qt Creator, not the one you are currently using.
Your code is way to short to reproduce the behaviour.
You also didn't state what flavour of Linux you are using. -
My linux version is 16.04LTS.I'm currently working on Qt creator Based on Qt 5.9.3 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
-
@Sriu1 said in QSpinBox improper behaviour:
Qt creator Based on Qt 5.9.3 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
Again: this is Qt version which was used to build QtCreator. Which Qt version did you install? You can check it in your Kit settings.
-
Are you sure that the result is really a random value ?
The spin box range is [10, 50], entering a 2 and moving the cursor results in an out of range value which usually results in the spin box going back to the previous value.
Post 7 of 7