Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the size of a QDoubleSpinBox?

Tags:

c++

qt

Nothing I've tried seems to work. setMinimumSize does exactly what I want it to if I switch from a QDoubleSpinBox to a QSpinBox, which leads me to believe this might be a bug in Qt 5.1.

like image 841
Roderick Avatar asked Oct 20 '22 10:10

Roderick


1 Answers

my Qt5.1 looks fine when changing the spinbox size. in the layout? did you set layout settings:

setSizePolicy(QSizePolicy::Ignored,QSizePolicy::Ignored); ?
like image 125
Fay100 Avatar answered Oct 23 '22 09:10

Fay100