[Qt-interest] Problem with overloading the textFromValue method within a QSpinBox/QDoubleSpinBox
Simon Schäfer
SirTwist at web.de
Wed Oct 7 10:16:28 CEST 2009
Hi,
I am trying to create a spin box with thousand delimiters (something like
1,000,000 instead of 1000000). The docs describe how it is done. But now I run
into problems using it. The attached code creates a small app where you can
test what I try to describe.
If you change the given value for example by placing the cursor in front of
the most right delimiter and insert only one digit, the value will change to a
non delimiter view and if you than change to the other box the value will stay
unchanged. The box is not even sending a signal that the value changed.
I tested it with Qt 4.5.3 and 4.6 git, and both the QDoubleSpinBox and the
QSpinBox.
Cheers
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decoratedSpinBox.tgz
Type: application/x-compressed-tar
Size: 866 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091007/2fb319a4/attachment.bin
More information about the Qt-interest-old
mailing list