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.dang...@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

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to