From a9d5d7f29fe1ab664c66d87e898ac34a03b044c2 Mon Sep 17 00:00:00 2001
From: wumu <mayi@mayi.com>
Date: 星期三, 31 一月 2024 23:37:04 +0800
Subject: [PATCH] 0131

---
 internal_system_v1/main.cpp |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/internal_system_v1/main.cpp b/internal_system_v1/main.cpp
index 10f11bd..32d434b 100644
--- a/internal_system_v1/main.cpp
+++ b/internal_system_v1/main.cpp
@@ -1,10 +1,30 @@
-#include "clientmainwindow.h"
+锘�#include "clientmainwindow.h"
 #include <QApplication>
 
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
     ClientMainWindow w;
+    //w.setStyleSheet("background-color:#FFC7F0");
+    // 钃濊壊娓愬彉
+    //w.setStyleSheet("background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #7bbfea,stop:0.5 #afdfe4 ,stop:1 #7bbfea)");
+
+    // 缁胯壊娓愬彉
+    //w.setStyleSheet("background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #a3cf62,stop:0.5 #bed742 ,stop:1 #a3cf62)");
+
+
+//    QLinearGradient gradient(0, 0, 1, 1); // 鍒涘缓绾挎�ф笎鍙樺璞�
+//    gradient.setColorAt(0.0, QColor(255, 0, 0)); // 璁剧疆璧峰棰滆壊
+//    gradient.setColorAt(1.0, QColor(0, 255, 0)); // 璁剧疆缁撴潫棰滆壊
+
+//    // 灏嗘笎鍙樻晥鏋滃簲鐢ㄥ埌 QWidget 涓�
+//    QPalette palette;
+//    palette.setBrush(QPalette::Background,gradient);
+//    w.setBackgroundRole(QPalette::Highlight);
+//    w.setPalette(palette);
+//    w.setAutoFillBackground(true);
+
+
     w.show();
 
     return a.exec();

--
Gitblit v1.8.0