调整参数设置按钮的字体样式
This commit is contained in:
parent
d1d37cce03
commit
e24034d65a
Binary file not shown.
@ -7,7 +7,7 @@ ParameterSettingsWidget::ParameterSettingsWidget(QWidget *parent )
|
|||||||
perHeighFreqstrlist<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz";
|
perHeighFreqstrlist<<"0.05Hz"<<"0.1Hz"<<"1Hz"<<"2Hz"<<"5Hz";
|
||||||
QGridLayout * grid = new QGridLayout;
|
QGridLayout * grid = new QGridLayout;
|
||||||
QSize tempSize(30,30);
|
QSize tempSize(30,30);
|
||||||
QSize tempBtn(150,64);
|
QSize tempBtn(180,64);
|
||||||
m_labSettingTxt.setFixedSize(tempBtn);
|
m_labSettingTxt.setFixedSize(tempBtn);
|
||||||
grid->addWidget(&m_labSettingTxt,0,0,Qt::AlignHCenter);
|
grid->addWidget(&m_labSettingTxt,0,0,Qt::AlignHCenter);
|
||||||
int row =1;
|
int row =1;
|
||||||
@ -224,10 +224,45 @@ ParameterSettingsWidget::ParameterSettingsWidget(QWidget *parent )
|
|||||||
vlay->addLayout(hlay3);
|
vlay->addLayout(hlay3);
|
||||||
|
|
||||||
setLayout(vlay);
|
setLayout(vlay);
|
||||||
this->setStyleSheet("QPushButton{background-color:white; border-radius:10px;}\
|
this->setStyleSheet("QLabel{font-family: 思源黑体;font-size: 28px;color: #054578;font-weight: 500;}QPushButton{background-color:white; border-radius:10px; color: #666666;font-family: Source Han Sans; font-size: 30px;font-weight: normal;}\
|
||||||
QPushButton:hover{background: #41B962; border-radius:10px;padding:7px 10px; }\
|
QPushButton:hover{background: #41B962; border-radius:10px;padding:7px 10px;color: #666666; font-family: Source Han Sans; font-size: 30px;font-weight: normal; }\
|
||||||
QPushButton:pressed{ background: #41B962; border-radius:10px; padding:7px 10px; }\
|
QPushButton:pressed{ background: #41B962; border-radius:10px; padding:7px 10px;color: #666666; font-family: Source Han Sans; font-size: 30px;font-weight: normal; }\
|
||||||
QPushButton:checked{background: #41B962;border-radius:10px;padding:7px 10px; }");
|
QPushButton:checked{background: #41B962;border-radius:10px;padding:7px 10px; color: #666666; font-family: Source Han Sans; font-size: 30px;font-weight: normal;}");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
m_btnOK.setStyleSheet("QPushButton{\
|
||||||
|
background: white;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:hover{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:pressed{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:checked{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}");
|
||||||
|
m_btncanCel.setStyleSheet("QPushButton{\
|
||||||
|
background: white;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:hover{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:pressed{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}\
|
||||||
|
QPushButton:checked{\
|
||||||
|
background: #0d9ddb;\
|
||||||
|
border-radius:10px;padding:7px 10px;\
|
||||||
|
}");
|
||||||
|
|
||||||
}
|
}
|
||||||
ParameterSettingsWidget::~ParameterSettingsWidget()
|
ParameterSettingsWidget::~ParameterSettingsWidget()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user