Change the contents rect of the lineedit using setContentsMargins - the line edit is only rendered inside the contents rect. Then you can add those arrows inside the lineedit but outside the contents rect. Of course this will make your edit field smaller regardless of the presence of arrows. An alternative is to use stylesheets and set padding on the line edit. Then you can place the arrows inside the box. And use tool buttons instead of push buttons.
An alternative to that is to use QwwTextSpinBox:![]()
Bookmarks