#include "SchemeWidget.h" #include "SchemeOptionWidget.h" #include #include SchemeWidget::SchemeWidget(QWidget *parent) : QDialog(parent) { initWindow(); initialize(); initLayout(); connectSignalsAndSlots(); } void SchemeWidget::initWindow() { setWindowTitle("评估方案"); setModal(true); setWindowFlags(Qt::Dialog); setWindowFlag(Qt::WindowContextHelpButtonHint, false); resize(1000, 600); } void SchemeWidget::initialize() { m_hBoxLayout = new QHBoxLayout(this); m_tableWidget = new QTableWidget(this); m_optionWidget = new SchemeOptionWidget(this); m_optionWidget->setFixedWidth(200); setStyleSheet("QTableWidget {border: 1px solid rgba(0, 0, 0, 0.073);background: rgb(244, 244, " "255);alternate-background-color: rgb(255, 255, 255);}" "QHeaderView::section {" "background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1," "stop:0 #616161, stop: 0.5 #505050," "stop: 0.6 #434343, stop:1 #656565);" "color: white;" "padding-left: 4px;" "border: 1px solid #6c6c6c;" "}"); } void SchemeWidget::initLayout() { m_hBoxLayout->addWidget(m_tableWidget); m_hBoxLayout->addWidget(m_optionWidget); } void SchemeWidget::connectSignalsAndSlots() { }