View Full Version : Make QSpinBox up/down buttons disappear
stefanadelbert
14th April 2010, 06:35
Is it possible to remove the up/down buttons from a QSpinBox without having to subclass it or use specific style sheets?
aamer4yu
14th April 2010, 06:44
I dont think so.. how do you want to increase / decrease the value then ?
stefanadelbert
14th April 2010, 07:23
I would like to use just the mouse scroll to change the value. I could create my own QLabel and implement all the relevant event handlers, but the QSpinBox does it all, including setting min and max values.
norobro
14th April 2010, 15:34
Hi,
I think the following is what you are looking for:
setButtonSymbols(QAbstractSpinBox::NoButtons)
stefanadelbert
15th April 2010, 00:40
@norobro: Champion!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.