Qt articles - Qt setting QSpinBox cannot input values from the keyboard

Use setFocusPolicy to set the property to Qt::NoFocus in the code, or set NoFocus directly on the QSpinBox property in the layout file.

Guess you like

Origin blog.csdn.net/u011391361/article/details/128804613