[Interest] QSpinbox repeat delay

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue Dec 3 23:38:13 CET 2019


Il 03/12/19 21:07, Murphy, Sean ha scritto:
> When using a QSpinBox, if the user clicks and holds on one of the up/down buttons (or uses one of the keyboard keys that do the same thing), there is a bit of a delay before the autorepeat functionality starts.
> 
> Is there a spot to query what that delay is and/or change it? From trial and error it appears it is ~500 ms on Windows, but there doesn't seem to be a way to control it.

As with any similar widget platform-specific behavior, specifically by 
the SH_SpinBox_ClickAutoRepeatThreshold style hint. Use 
spinbox->style()->styleHint to fetch the value; use a custom style or a 
proxy style to change it.

HTH,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191203/520b7f21/attachment.bin>


More information about the Interest mailing list