Gui::InputField precision limitation (2 digits)

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
mlampert
Posts: 1463
Joined: Fri Sep 16, 2016 9:28 pm

Gui::InputField precision limitation (2 digits)

Postby mlampert » Wed Jan 18, 2017 7:53 pm

I just filed issue 2866 (http://www.freecadweb.org/tracker/view.php?id=2866) about Gui::InputField rounding all entered values to 2 digits, internally. Not sure if I got the category right and everything, hence the post here.
User avatar
Kunda1
Posts: 7532
Joined: Thu Jan 05, 2017 9:03 pm

Re: Gui::InputField precision limitation (2 digits)

Postby Kunda1 » Wed Jan 18, 2017 8:01 pm

mlampert wrote:I just filed issue 2866 (http://www.freecadweb.org/tracker/view.php?id=2866) about Gui::InputField rounding all entered values to 2 digits, internally. Not sure if I got the category right and everything, hence the post here.
FYI you can type the issue number and then press the 'bug' button in the forum
and it will automagically link to the tracker

issue #2866
Attachments
bug-button.png
bug-button.png (170.73 KiB) Viewed 719 times
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mlampert
Posts: 1463
Joined: Fri Sep 16, 2016 9:28 pm

Re: Gui::InputField precision limitation (2 digits)

Postby mlampert » Wed Jan 18, 2017 8:14 pm

Kunda1 wrote:FYI you can type the issue number and then press the 'bug' button in the forum
and it will automagically link to the tracker

issue #2866
Awesome, tried to figure that out and couldn't make it work. Thanks for the hint.
User avatar
Kunda1
Posts: 7532
Joined: Thu Jan 05, 2017 9:03 pm

Re: Gui::InputField precision limitation (2 digits)

Postby Kunda1 » Wed Jan 18, 2017 8:30 pm

is there a relationship with issue #1822 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
mlampert
Posts: 1463
Joined: Fri Sep 16, 2016 9:28 pm

Re: Gui::InputField precision limitation (2 digits)

Postby mlampert » Wed Jan 18, 2017 8:38 pm

not sure about that.

There is a comment that the # decimals can be set in the preferences. If that applies to the InputField and its internal representation then I guess it would be related. If that is the case then that setting needs some documentation, as it stands it looks like it's for display purposes only.