|
@@ -30,6 +30,7 @@ ChartsAndCamerasWnd::ChartsAndCamerasWnd(QWidget* parent) :
|
|
|
chartLine->setParent(ui->Leftwidget);
|
|
|
chartLine->setGeometry(0, 0, 560, 280);
|
|
|
chartLine->setChartLabels("Combined Placement", "Number of Samples", "Device Align");
|
|
|
+
|
|
|
|
|
|
// 设置 ChartLine1 的位置和大小
|
|
|
chartLine1->setParent(ui->Leftwidget);
|
|
@@ -45,6 +46,8 @@ ChartsAndCamerasWnd::ChartsAndCamerasWnd(QWidget* parent) :
|
|
|
// 初始化系列信息
|
|
|
initializeSeriesInfo();
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 连接所有复选框的 clicked 信号到通用槽函数
|
|
|
QList<QCheckBox*> checkBoxes = {
|
|
|
ui->GreenDiamondcheckBox,
|
|
@@ -70,6 +73,25 @@ ChartsAndCamerasWnd::ChartsAndCamerasWnd(QWidget* parent) :
|
|
|
//isEnable = false;
|
|
|
// initFrom();
|
|
|
isShow = true;
|
|
|
+ QTimer* timer = new QTimer(this);
|
|
|
+ connect(timer, &QTimer::timeout, this, &ChartsAndCamerasWnd::setColor);
|
|
|
+ timer->start(100);
|
|
|
+}
|
|
|
+
|
|
|
+void ChartsAndCamerasWnd::setColor() {
|
|
|
+ QSettings settings("YourCompany", "YourApplication_style");
|
|
|
+ int flag = settings.value("Flag_Style").toInt();
|
|
|
+
|
|
|
+ if (flag == 1) {
|
|
|
+ chartLine->setChartColors(Qt::white);
|
|
|
+ chartLine1->setChartColors(Qt::white);
|
|
|
+ chartLine2->setChartColors(Qt::white);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ chartLine->setChartColors(QColor("#29517E"));
|
|
|
+ chartLine1->setChartColors(QColor("#29517E"));
|
|
|
+ chartLine2->setChartColors(QColor("#29517E"));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
ChartsAndCamerasWnd::~ChartsAndCamerasWnd()
|