I wanted to apply the keyboardTracking property to the PD Pad dialog fields because having e.g. 4 recomputes just to type in "13,8" cost a lot of time for complex geometries.
This way I realized that the Gui::PrefQuantitySpinBox does not yet have this property while Werner added this recently to Gui::QuantitySpinBox.
Werner, is there a reason? Could you add this to the *Pref* class too or should I do something else with the Pad dialog? (just using the Gui::QuantitySpinBox does not work because then we loose the history saving feature)
When typing the numbers with the keyboard no text is printed. Only when using the mouse wheel or the spin buttons some text is printed. It would also be illogical because PrefQuantitySpinBox inherits from QuantitySpinBox and doesn't override any of the virtual methods of its base class.
If things don't work as expected then something else must be wrong.
wmayer wrote: ↑Sat Aug 08, 2020 9:26 am
When typing the numbers with the keyboard no text is printed. Only when using the mouse wheel or the spin buttons some text is printed. It would also be illogical because PrefQuantitySpinBox inherits from QuantitySpinBox and doesn't override any of the virtual methods of its base class.
If things don't work as expected then something else must be wrong.
It works as expected @wmayer. When KeyboardTracking is set to 'True', signal is emitted for each character.
To me this is what it should be.
uwestoehr wrote: ↑Sat Aug 08, 2020 2:20 am
I wanted to apply the keyboardTracking property to the PD Pad dialog fields because having e.g. 4 recomputes just to type in "13,8" cost a lot of time for complex geometries.
This way I realized that the Gui::PrefQuantitySpinBox does not yet have this property while Werner added this recently to Gui::QuantitySpinBox.
Can you share a snippet that demonstrates the problem ?
I purposely use Qt's designer because it prevents me from making mistakes. And there I see for Gui::QuantitySpinBox the QAbstractSpinBox properties:
The FreeCAD widgets plugin is only to provide something visible and offer the Qt properties inside the designer. But functionality-wise it's very limited because it otherwise would require to be linked against the FreeCAD core libraries (i.e. FreeCADBase, App, Gui) that would make things much more complicated. So, you really have to compile your changes and test within the running FreeCAD instance.
devenv_yqgZaixFKm.png (108.48 KiB) Viewed 1003 times
I simply inherited the UI features of Gui::QuantitySpinBox for Gui::PrefQuantitySpinBox. But I am a total newbie in this area. Werner, can you therefore please have a look at my PR?
openBrain wrote: ↑Sat Aug 08, 2020 9:56 am
To me this is what it should be.
This would be ok, if it wasn't for this very common use case, e.g. when changing the length from 10 to 20:
change the length by removing the first character and write a "1" instead.
As I still think that errors matter I have the auto-raise for report view enabled, and having removed the first character throws an error because the pad has length zero.
chrisb wrote: ↑Sat Aug 08, 2020 2:31 pm
This would be ok, if it wasn't for this very common use case, e.g. when changing the length from 10 to 20:
change the length by removing the first character and write a "1" instead.
As I still think that errors matter I have the auto-raise for report view enabled, and having removed the first character throws an error because the pad has length zero.
Wrong topic? There's no pad here. Just something that works the way it has to.