样式调节

This commit is contained in:
work-zym\zhangyiming 2024-11-13 15:03:53 +08:00
parent 1bd1ddba88
commit c7deb85b31
2 changed files with 41 additions and 7 deletions

Binary file not shown.

View File

@ -80,20 +80,54 @@ ParameterSettingsWidget::ParameterSettingsWidget(QWidget *parent )
QWidget * w = new QWidget; QWidget * w = new QWidget;
setObjectName("paramawidget");
this->setStyleSheet("QWidget \
{\
background-color:white;\
border-radius:10px;\
}"\
);
setStyleSheet("QWidget \
{\
background-color:white;\
border-radius:10px;\
}");
w->setLayout(vlay); w->setLayout(vlay);
QHBoxLayout * hlayall = new QHBoxLayout; QHBoxLayout * hlayall = new QHBoxLayout;
hlayall->addWidget(w); hlayall->addWidget(w);
setLayout(hlayall); setLayout(hlayall);
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;\
}");
m_btncanCel.setMinimumWidth(100);
m_btnOK.setMinimumWidth(100);
} }
ParameterSettingsWidget::~ParameterSettingsWidget() ParameterSettingsWidget::~ParameterSettingsWidget()
{ {