QSpinBox樣式表設定

風語情發表於2019-11-08

QAbstractSpinBox
{
    border: 1px solid #26609e;
    font: 10pt "微軟雅黑";
    color: rgb(255, 255, 255);
    height:35px;
    min-width: 10px;  
}
QAbstractSpinBox::up-button
{
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 0px;
}
QAbstractSpinBox::down-button
{
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 0px;
}
 

相關文章