Page 1 of 1

PR #2867 QuantitySpinBox: set/change tooltip at runtime

Posted: Mon Jan 06, 2020 5:19 pm
by uwestoehr
In https://github.com/FreeCAD/FreeCAD/pull/2867 I added support to change the tooltips for QuantitySpinBox elements.

This element consists of a LineEdit and an IconLabel. Therefore I created 2 functions to change their tooltips. However, maybe there should only be one function that changes the LineEdit?

Re: PR #2867 QuantitySpinBox: set/change tooltip at runtime

Posted: Wed Jan 08, 2020 1:09 pm
by uwestoehr
uwestoehr wrote: Mon Jan 06, 2020 5:19 pm In https://github.com/FreeCAD/FreeCAD/pull/2867 I added support to change the tooltips for QuantitySpinBox elements.
Yorik already merged it, however I am no longer sure it only helps to workaround bug issue #4059. In PR https://github.com/FreeCAD/FreeCAD/pull/2871 I use the setTooltip function exactly for this purpose.
Something is incorrect with the QuantitySpinBox tooltips, I mean I wonder why it doesn't inherit the basic Qt setTooltip() function.

So if someone more familiar with Qt could have a look at QuantitySpinBox, it would be nice.

Re: PR #2867 QuantitySpinBox: set/change tooltip at runtime

Posted: Thu Jan 09, 2020 10:11 pm
by wmayer
The issue has nothing to do with issue #4059. The tool tips are cleared here by the attachment dialog itself:
https://github.com/donovaly/FreeCAD/blo ... r.cpp#L748

Re: PR #2867 QuantitySpinBox: set/change tooltip at runtime

Posted: Thu Jan 09, 2020 11:39 pm
by uwestoehr
wmayer wrote: Thu Jan 09, 2020 10:11 pm The issue has nothing to do with issue #4059. The tool tips are cleared here by the attachment dialog itself:
https://github.com/donovaly/FreeCAD/blo ... r.cpp#L748
Stupid me for overlooking this.

Thanks for fixing the bug.