From 30306e9396bdf9dcc05304139bed8a78b3faa526 Mon Sep 17 00:00:00 2001 From: tangchao0503 <735056338@qq.com> Date: Fri, 16 Jan 2026 17:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E7=BE=8E?= =?UTF-8?q?=E5=8C=96=EF=BC=9A=201=E3=80=81=E5=B7=A6=E4=B8=8B=E8=A7=923d?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=A2=84=E8=A7=88=E7=9C=8B=E6=9D=BF=EF=BC=9B?= =?UTF-8?q?=202=E3=80=81=E5=8F=B3=E4=B8=8B=E8=A7=92=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HPPA/Carousel.cpp | 2 +- HPPA/HPPA.cpp | 29 +- HPPA/HPPA.h | 1 - HPPA/HPPA.ui | 704 ++++++++++----- HPPA/PowerControl.ui | 326 +++++-- HPPA/TabManager.cpp | 3 +- HPPA/TwoMotorControl.cpp | 131 +-- HPPA/TwoMotorControl.h | 1 - HPPA/View3D.cpp | 55 +- HPPA/View3D.h | 3 + HPPA/adjustTable.ui | 271 +++++- HPPA/oneMotorControl.ui | 559 +++++++----- HPPA/twoMotorControl.ui | 1855 +++++++++++++++++--------------------- 13 files changed, 2204 insertions(+), 1736 deletions(-) diff --git a/HPPA/Carousel.cpp b/HPPA/Carousel.cpp index dacd0ad..73aca79 100644 --- a/HPPA/Carousel.cpp +++ b/HPPA/Carousel.cpp @@ -12,7 +12,7 @@ MyCarousel::MyCarousel(QWidget* parent) m_isPlaying(false), m_isLocked(false), m_lockedIndex(-1), - m_playInterval(1000), + m_playInterval(2000), m_intervalButtonSize(40) { QVBoxLayout* layout = new QVBoxLayout(this); diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp index 76f8546..f99395e 100644 --- a/HPPA/HPPA.cpp +++ b/HPPA/HPPA.cpp @@ -406,6 +406,7 @@ HPPA::HPPA(QWidget* parent) file.close(); this->restoreState(ba); } + this->showMaximized(); } void HPPA::initMenubarToolbar() @@ -520,39 +521,21 @@ void HPPA::initMenubarToolbar() } void HPPA::initControlTabwidget() -{ - ui.controlTabWidget->removeTab(1); - - m_videoWidget = new QWidget(); - QVBoxLayout* vBoxLayout_videoWidget = new QVBoxLayout(m_videoWidget); - - vBoxLayout_videoWidget->setSpacing(6); - vBoxLayout_videoWidget->setObjectName(QString::fromUtf8("vBoxLayout_videoWidget")); - vBoxLayout_videoWidget->setContentsMargins(0, 0, 0, 0); - - m_open_rgb_camera_btn = new QPushButton(QString::fromLocal8Bit("打开")); - m_open_rgb_camera_btn->setObjectName(QString::fromUtf8("m_open_rgb_camera_btn")); - m_close_rgb_camera_btn = new QPushButton(QString::fromLocal8Bit("关闭")); - m_close_rgb_camera_btn->setObjectName(QString::fromUtf8("m_close_rgb_camera_btn")); - vBoxLayout_videoWidget->addWidget(m_open_rgb_camera_btn); - vBoxLayout_videoWidget->addWidget(m_close_rgb_camera_btn); - +{ //rgb相机 m_RgbCameraThread = new QThread(); m_RgbCamera = new RgbCameraOperation(); m_RgbCamera->moveToThread(m_RgbCameraThread); m_RgbCameraThread->start(); - connect(m_open_rgb_camera_btn, SIGNAL(clicked()), m_RgbCamera, SLOT(OpenCamera()));//使用信号通知主线程(ui线程)刷新视频 → 成功,但是界面卡顿 + connect(ui.open_rgb_camera_btn, SIGNAL(clicked()), m_RgbCamera, SLOT(OpenCamera()));//使用信号通知主线程(ui线程)刷新视频 → 成功,但是界面卡顿 connect(m_RgbCamera, SIGNAL(PlotSignal()), this, SLOT(onPlotRgbImage())); //m_RgbCamera->setCallback(onPlotRgbImage); //connect(this->ui.open_rgb_camera_btn, SIGNAL(clicked()), m_RgbCamera, SLOT(OpenCamera_callback()));//使用回调函数来刷新主线程(ui线程)上的视频 → 失败 - connect(m_close_rgb_camera_btn, SIGNAL(clicked()), this, SLOT(onCloseRgbCamera()));//关闭相机 + connect(ui.close_rgb_camera_btn, SIGNAL(clicked()), this, SLOT(onCloseRgbCamera()));//关闭相机 connect(m_RgbCamera, SIGNAL(CamClosed()), this, SLOT(onClearLabel())); - ui.controlTabWidget->addTab(m_videoWidget, QString::fromLocal8Bit("rgb相机")); - //升降桌dock m_adt = new adjustTable(); m_adt->setWindowFlags(Qt::Widget); @@ -772,7 +755,7 @@ void HPPA::createOneMotorScenario() ui.mAction_1AxisMotor->setChecked(true); //右下角控制tab - m_tabManager->hideTab(m_videoWidget); + m_tabManager->hideTab(ui.rgbCameraWidget); m_tabManager->hideTab(m_adt); m_tabManager->hideTab(m_pc); m_tabManager->hideTab(m_rac); @@ -806,7 +789,7 @@ void HPPA::createPlantPhenotypeScenario() m_tabManager->hideTab(m_rac); m_tabManager->hideTab(m_omc); - m_tabManager->showTab(m_videoWidget); + m_tabManager->showTab(ui.rgbCameraWidget); m_tabManager->showTab(m_adt); m_tabManager->showTab(m_pc); m_tabManager->showTab(m_tmc); diff --git a/HPPA/HPPA.h b/HPPA/HPPA.h index 515adb4..e8001f8 100644 --- a/HPPA/HPPA.h +++ b/HPPA/HPPA.h @@ -244,7 +244,6 @@ private: TabManager* m_tabManager; - QWidget* m_videoWidget; adjustTable* m_adt; PowerControl* m_pc; RobotArmControl* m_rac; diff --git a/HPPA/HPPA.ui b/HPPA/HPPA.ui index 77a74a3..08deffb 100644 --- a/HPPA/HPPA.ui +++ b/HPPA/HPPA.ui @@ -7,7 +7,7 @@ 0 0 1486 - 899 + 898 @@ -20,25 +20,7 @@ - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - + @@ -273,252 +255,549 @@ QToolBar QToolButton:hover { 2 + + QWidget #dockWidgetContents_4 +{ + background-color: #0E1C4C; + + border-top: 1px solid #2c586b; + border-left: 1px solid #2c586b; + border-right: 1px solid #2c586b; + border-bottom: 1px solid #2c586b; + + border-top-left-radius: 0px; + border-top-right-radius: 0px; + border-bottom-left-radius: 10px; + border-bottom-right-radius: 10px; +} + + - 0 + 2 - 0 + 2 - 0 + 2 - 0 + 2 + + + 6 + + QTabBar::tab { + background: #0E1C4C; + color: white; + padding: 6px 12px; + border: none; + border-top: 1px solid #27376C; + height: 41; +} + +QTabBar::tab:selected { + background: #0D1233; + color: white; + border: none; +} + +/*QTabBar::tab:hover { + background: #141A45; +}*/ + +QTabWidget::pane { + border: none; + border-top: 1px solid #27376C; + background: #0D1233; + top: -1px; +} + + QTabWidget::South + + QTabWidget::Rounded + + + 1 + + + Qt::ElideNone + + + +QLineEdit { + background-color: #142D7F; + color: #e6eeff; + border: 1px solid #2f6bff; + border-radius: 6px; + padding: 4px 8px; + min-width: 70px; + min-height: 20px; + font-size: 13px; +} +QLineEdit:hover { + border: 1px solid #4d8dff; +} + +QLineEdit:focus { + border: 1px solid #6aa2ff; + background-color: #23345c; +} + + + + + + +QSlider::groove:horizontal { + height: 10px; + background: #1e2a44; + border-radius: 3px; +} + +/* 宸叉粦杩囷細娓愬彉钃 */ +QSlider::sub-page:horizontal { + background: qlineargradient( + x1:0, y1:0, x2:1, y2:0, + stop:0 #1f4fff, + stop:0.5 #2f6bff, + stop:1 #5fa0ff + ); + border-radius: 3px; +} + +/* 鏈粦杩 */ +QSlider::add-page:horizontal { + height: 10px; + background: #2a3550; + border-radius: 3px; +} + +/* ===== 婊戝潡鎸夐挳 ===== */ +QSlider::handle:horizontal { + width: 15px; + height: 10px; + + /* 钃濊壊瀹炲績 */ + background: #2f6bff; + + /* 鐧借壊澶栧湀 */ + border: 2px solid #ffffff; + border-radius: 5px; + + /* 鍨傜洿灞呬腑 */ + margin: -5px 0; +} + +/* 鎮仠 */ +QSlider::handle:horizontal:hover { + background: #4d8dff; +} + +/* 鎸変笅 */ +QSlider::handle:horizontal:pressed { + background: #1f4fff; +} + 鍏夎氨浠 - + - 0 + 10 0 - 0 + 10 + 10 + + 0 - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 100 - 16777215 - - - - 甯х巼 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - background-color: rgb(255, 255, 255); - - - - + + + + + + :/HPPA/HPPA.ico + + + Qt::AlignCenter + + - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 100 - 20 - - - - - - - - Qt::Horizontal - - - - + + + + 0 + 0 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 2 + + + 6 + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + color: rgb(255, 255, 255); + + + 甯х巼 + + + Qt::AlignCenter + + + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Qt::Horizontal + + + + + + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + color: rgb(255, 255, 255); + + + 绉垎鏃堕棿 + + + Qt::AlignCenter + + + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Qt::Horizontal + + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + color: rgb(255, 255, 255); + + + gain + + + Qt::AlignCenter + + + + + + + + + + 0 + 0 + + + + + + + + + + + + 0 + 0 + + + + Qt::Horizontal + + + + + + + - - - - - - - 100 - 16777215 - + + + + + QGroupBox +{ + border: 12px solid transparent; + color: #ACCDFF; +} + +QPushButton +{ + /*width: 172px; + height: 56px;*/ + font: 19pt "鏂板畫浣"; + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + border: none; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 鎸変笅鏃剁殑鏁堟灉 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 鍙夛細娣诲姞涓嬪帇鏁堟灉 */ + padding-top: 9px; + padding-bottom: 7px; +} + + + rgb鐩告満 + + + + + + Qt::Vertical + + + + 20 + 174 + + + + + + + + Qt::Horizontal + + + + 115 + 20 + + + + + + + + 20 + + + + + + 0 + 0 + - 绉垎鏃堕棿 - - - Qt::AlignCenter + 褰曞埗瑙嗛 - - + + - + 0 0 - - background-color: rgb(255, 255, 255); - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 100 - 20 - - - - - - - - Qt::Horizontal - - - - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 100 - 16777215 - - - gain - - - Qt::AlignCenter + 鎷嶇収 - - + + - + 0 0 - - background-color: rgb(255, 255, 255); + + 鍏抽棴 + + + + + + + + 0 + 0 + + + + 鎵撳紑 - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 100 - 20 - - - - - - - - - 0 - 0 - - - - Qt::Horizontal - - - - + + + + Qt::Horizontal + + + + 115 + 20 + + + - + Qt::Vertical @@ -526,18 +805,13 @@ QToolBar QToolButton:hover { 20 - 594 + 173 - - - Tab 2 - - diff --git a/HPPA/PowerControl.ui b/HPPA/PowerControl.ui index 8063f8f..4a6c34c 100644 --- a/HPPA/PowerControl.ui +++ b/HPPA/PowerControl.ui @@ -6,114 +6,246 @@ 0 0 - 294 - 119 + 432 + 346 PowerControl - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - - 鍗ょ礌鐏 - - - - - - - 鎵撳紑 - - - - - - - 鍏抽棴 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - 椹 杈 - - - - - - - 鎵撳紑 - - - - - - - 鍏抽棴 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - + + QGroupBox +{ + border: 12px solid transparent; + color: #ACCDFF; +} + +QPushButton +{ + /*width: 172px; + height: 56px;*/ + font: 19pt "鏂板畫浣"; + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + border: none; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 鎸変笅鏃剁殑鏁堟灉 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 鍙夛細娣诲姞涓嬪帇鏁堟灉 */ + padding-top: 9px; + padding-bottom: 7px; +} + + + + Qt::Vertical 20 - 42 + 145 + + + + + + + + Qt::Horizontal + + + + 151 + 20 + + + + + + + + + 0 + 0 + + + + 鍗ょ礌鐏 + + + + 0 + + + 10 + + + 0 + + + 0 + + + 20 + + + + + + 0 + 0 + + + + 鎵撳紑 + + + + + + + + 0 + 0 + + + + 鍏抽棴 + + + + + + + + + + Qt::Horizontal + + + + 151 + 20 + + + + + + + + Qt::Horizontal + + + + 151 + 20 + + + + + + + + + 0 + 0 + + + + 椹 杈 + + + + 0 + + + 10 + + + 0 + + + 0 + + + 20 + + + + + + 0 + 0 + + + + 鎵撳紑 + + + + + + + + 0 + 0 + + + + 鍏抽棴 + + + + + + + + + + Qt::Horizontal + + + + 151 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 144 diff --git a/HPPA/TabManager.cpp b/HPPA/TabManager.cpp index 74b9d6e..b845442 100644 --- a/HPPA/TabManager.cpp +++ b/HPPA/TabManager.cpp @@ -48,7 +48,8 @@ void TabManager::showTab(QWidget* page) TabInfo info = m_hiddenTabs.take(page); - int insertIndex = qMin(info.index, m_tabWidget->count()); + //int insertIndex = qMin(info.index, m_tabWidget->count()); + int insertIndex = m_tabWidget->count(); m_tabWidget->insertTab(insertIndex, page, info.icon, info.text); m_tabWidget->setTabToolTip(insertIndex, info.toolTip); diff --git a/HPPA/TwoMotorControl.cpp b/HPPA/TwoMotorControl.cpp index ff78e4f..bf77758 100644 --- a/HPPA/TwoMotorControl.cpp +++ b/HPPA/TwoMotorControl.cpp @@ -5,7 +5,6 @@ TwoMotorControl::TwoMotorControl(QWidget* parent) : QDialog(parent) ui.setupUi(this); ui.recordLine_tableWidget->setFocusPolicy(Qt::NoFocus); - ui.recordLine_tableWidget->setStyleSheet("selection-background-color:rgb(255,209,128)");//璁剧疆閫夋嫨鐨勮楂樹寒 ui.recordLine_tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows);//璁剧疆閫夋嫨琛屼负锛屼互琛屼负鍗曚綅 //ui.recordLine_tableWidget->setSelectionMode(QAbstractItemView::SingleSelection);//璁剧疆閫夋嫨妯″紡锛岄夋嫨鍗曡 @@ -16,13 +15,9 @@ TwoMotorControl::TwoMotorControl(QWidget* parent) : QDialog(parent) connect(ui.addRecordLine_btn, SIGNAL(clicked()), this, SLOT(onAddRecordLine_btn())); connect(ui.removeRecordLine_btn, SIGNAL(clicked()), this, SLOT(onRemoveRecordLine_btn())); - connect(ui.generateRecordLine_btn, SIGNAL(clicked()), this, SLOT(onGenerateRecordLine_btn())); connect(ui.deleteRecordLine_btn, SIGNAL(clicked()), this, SLOT(onDeleteRecordLine_btn())); connect(ui.saveRecordLine2File_btn, SIGNAL(clicked()), this, SLOT(onSaveRecordLine2File_btn())); connect(ui.readRecordLineFile_btn, SIGNAL(clicked()), this, SLOT(onReadRecordLineFile_btn())); - - connect(ui.run_btn, SIGNAL(clicked()), this, SLOT(run())); - connect(ui.stop_btn, SIGNAL(clicked()), this, SLOT(stop())); } void TwoMotorControl::setImager(ImagerOperationBase* imager) @@ -395,93 +390,6 @@ void TwoMotorControl::onRemoveRecordLine_btn() ui.recordLine_tableWidget->removeRow(rowIndex); } -void TwoMotorControl::onGenerateRecordLine_btn() -{ - //姹傚箙瀹 - double height = ui.height_lineEdit->text().toDouble(); - double fov = ui.fov_lineEdit->text().toDouble(); - double swath = (height * tan(fov / 2 * PI / 180)) * 2;//tan杈撳叆鏄姬搴 - ui.swath_lineEdit->setText(QString::number(swath)); - - - //璇诲彇椹揪娴嬮噺鑼冨洿 - double xMotorRange = 50; - double yMotorRange = 500; - - - //纭畾鏈夊灏戞潯閲囬泦绾匡紝鍏紡锛歯umberOfRecordLine_tmp * swath - repetitiveLength锛坣umberOfRecordLine_tmp - 1锛 = overallLength - double overallLength = yMotorRange + swath; - double repetitiveRate = ui.repetitiveRate_lineEdit->text().toDouble() / 100; - double repetitiveLength = repetitiveRate * swath; - double offset = ui.offset_lineEdit->text().toDouble(); - - double numberOfRecordLine_tmp = (overallLength - repetitiveLength - offset) / (swath - repetitiveLength); - double tmp = numberOfRecordLine_tmp - (int)numberOfRecordLine_tmp; - int numberOfRecordLine; - double threshold = ui.LastLineThreshold_lineEdit->text().toDouble();//褰搉umberOfRecordLine_tmp涓哄皬鏁版椂锛屽垽鏂槸鍚﹀鍔犱竴鏉¢噰闆嗙嚎 - if (tmp > threshold) - { - numberOfRecordLine = (int)numberOfRecordLine_tmp + 1; - //std::cout << "澶т簬锛" << threshold << std::endl; - } - else - { - numberOfRecordLine = (int)numberOfRecordLine_tmp; - } - - - - //鍘绘帀tableWidget涓墍鏈夌殑琛 - int rowCount = ui.recordLine_tableWidget->rowCount(); - for (size_t i = 0; i < rowCount; i++) - { - ui.recordLine_tableWidget->removeRow(0); - } - - - //鍚憈ableWidget娣诲姞琛岋紙閲囬泦绾匡級 - QTableWidgetItem* tmpItem; - for (size_t i = 0; i < numberOfRecordLine; i++) - { - //澧炲姞涓琛 - int RowCount = ui.recordLine_tableWidget->rowCount(); - ui.recordLine_tableWidget->insertRow(RowCount); - - //璁剧疆yPosition - if (tmp > threshold && i == numberOfRecordLine - 1)//璁剧疆鏈鍚庝竴琛岀殑yPosition - { - tmpItem = new QTableWidgetItem(QString::number(yMotorRange, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 0, tmpItem); - } - else - { - double x = swath * i - i * repetitiveLength + offset; - tmpItem = new QTableWidgetItem(QString::number(x, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 0, tmpItem); - } - tmpItem = new QTableWidgetItem(QString::number(1, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 1, tmpItem); - - tmpItem = new QTableWidgetItem(QString::number(0, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 2, tmpItem); - tmpItem = new QTableWidgetItem(QString::number(1, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 3, tmpItem); - - //璁剧疆x椹揪鏈澶ц繍鍔ㄤ綅缃 鈫 鍊艰缃负x椹揪閲忕▼ - tmpItem = new QTableWidgetItem(QString::number(xMotorRange, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 4, tmpItem); - tmpItem = new QTableWidgetItem(QString::number(1, 10, 2)); - tmpItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter); - ui.recordLine_tableWidget->setItem(i, 5, tmpItem); - } -} - void TwoMotorControl::onDeleteRecordLine_btn() { int rowCount = ui.recordLine_tableWidget->rowCount(); @@ -500,19 +408,12 @@ void TwoMotorControl::onSaveRecordLine2File_btn() return; } - double height = ui.height_lineEdit->text().toDouble(); - double fov = ui.fov_lineEdit->text().toDouble(); - double swath = ui.swath_lineEdit->text().toDouble(); - double offset = ui.offset_lineEdit->text().toDouble(); - double repetitiveRate = ui.repetitiveRate_lineEdit->text().toDouble(); - double LastLineThreshold = ui.LastLineThreshold_lineEdit->text().toDouble(); - FileOperation* fileOperation = new FileOperation(); string directory = fileOperation->getDirectoryOfExe(); - QString RecordLineFilePath = QFileDialog::getSaveFileName(this, tr("Save RecordLine2 File"), + QString RecordLineFilePath = QFileDialog::getSaveFileName(this, tr("Save RecordLine3 File"), QString::fromStdString(directory), - tr("RecordLineFile2 (*.RecordLine2)")); + tr("RecordLineFile3 (*.RecordLine3)")); if (RecordLineFilePath.isEmpty()) { @@ -521,13 +422,6 @@ void TwoMotorControl::onSaveRecordLine2File_btn() FILE* RecordLineFileHandle = fopen(RecordLineFilePath.toStdString().c_str(), "wb+"); - fwrite(&height, sizeof(double), 1, RecordLineFileHandle); - fwrite(&fov, sizeof(double), 1, RecordLineFileHandle); - fwrite(&swath, sizeof(double), 1, RecordLineFileHandle); - fwrite(&offset, sizeof(double), 1, RecordLineFileHandle); - fwrite(&repetitiveRate, sizeof(double), 1, RecordLineFileHandle); - fwrite(&LastLineThreshold, sizeof(double), 1, RecordLineFileHandle); - double number = ui.recordLine_tableWidget->rowCount() * ui.recordLine_tableWidget->columnCount(); fwrite(&number, sizeof(double), 1, RecordLineFileHandle); @@ -555,9 +449,9 @@ void TwoMotorControl::onReadRecordLineFile_btn() FileOperation* fileOperation = new FileOperation(); string directory = fileOperation->getDirectoryOfExe(); - QString RecordLineFilePath = QFileDialog::getOpenFileName(this, tr("Open RecordLine2 File"), + QString RecordLineFilePath = QFileDialog::getOpenFileName(this, tr("Open RecordLine3 File"), QString::fromStdString(directory), - tr("RecordLineFile (*.RecordLine2)")); + tr("RecordLineFile (*.RecordLine3)")); if (RecordLineFilePath.isEmpty()) { @@ -565,15 +459,9 @@ void TwoMotorControl::onReadRecordLineFile_btn() } FILE* RecordLineFileHandle = fopen(RecordLineFilePath.toStdString().c_str(), "rb"); - double height, fov, swath, offset, repetitiveRate, LastLineThreshold, number; + double number; //璇诲彇鏁版嵁 - fread(&height, sizeof(double), 1, RecordLineFileHandle); - fread(&fov, sizeof(double), 1, RecordLineFileHandle); - fread(&swath, sizeof(double), 1, RecordLineFileHandle); - fread(&offset, sizeof(double), 1, RecordLineFileHandle); - fread(&repetitiveRate, sizeof(double), 1, RecordLineFileHandle); - fread(&LastLineThreshold, sizeof(double), 1, RecordLineFileHandle); fread(&number, sizeof(double), 1, RecordLineFileHandle); double* data = new double[number]; @@ -583,15 +471,6 @@ void TwoMotorControl::onReadRecordLineFile_btn() //std::cout << *(data + i) << std::endl; } - //鍚戠晫闈腑濉啓 - ui.height_lineEdit->setText(QString::number(height)); - ui.fov_lineEdit->setText(QString::number(fov)); - ui.swath_lineEdit->setText(QString::number(swath)); - ui.offset_lineEdit->setText(QString::number(offset)); - ui.repetitiveRate_lineEdit->setText(QString::number(repetitiveRate)); - ui.LastLineThreshold_lineEdit->setText(QString::number(LastLineThreshold)); - - //鍚憈ableWidget娣诲姞閲囬泦绾 //锛1锛夊幓鎺塼ableWidget涓墍鏈夌殑琛 int rowCount = ui.recordLine_tableWidget->rowCount(); diff --git a/HPPA/TwoMotorControl.h b/HPPA/TwoMotorControl.h index b1dd553..2f58984 100644 --- a/HPPA/TwoMotorControl.h +++ b/HPPA/TwoMotorControl.h @@ -57,7 +57,6 @@ public Q_SLOTS: void onAddRecordLine_btn(); void onRemoveRecordLine_btn(); - void onGenerateRecordLine_btn(); void onDeleteRecordLine_btn(); void onSaveRecordLine2File_btn(); void onReadRecordLineFile_btn(); diff --git a/HPPA/View3D.cpp b/HPPA/View3D.cpp index c2a27f5..10d08a9 100644 --- a/HPPA/View3D.cpp +++ b/HPPA/View3D.cpp @@ -18,7 +18,8 @@ View3DBase::View3DBase(const QString& baseModelPath, { m_view = new Qt3DExtras::Qt3DWindow(); // 閮ㄥ垎 Qt5.9 鏋勫缓鍙兘闇瑕佸己杞 frame graph锛屼絾 defaultFrameGraph() 閫氬父鍙敤 - m_view->defaultFrameGraph()->setClearColor(Qt::white); + QColor c1("#0D1233"); + m_view->defaultFrameGraph()->setClearColor(c1); m_rootEntity = new Qt3DCore::QEntity(); @@ -61,6 +62,18 @@ void View3DBase::setDistance(float distance) void View3DBase::initScene() { + /*auto* lightEntity = new Qt3DCore::QEntity(m_rootEntity); + + auto* light = new Qt3DRender::QPointLight(lightEntity); + light->setColor(Qt::white); + light->setIntensity(1.2f); + + auto* lightTransform = new Qt3DCore::QTransform(lightEntity); + lightTransform->setTranslation(QVector3D(500, 500, 500)); + + lightEntity->addComponent(light); + lightEntity->addComponent(lightTransform);*/ + // ===== 鍒涘缓 base 鏍硅妭鐐 ===== auto* baseModel = new Qt3DCore::QEntity(m_rootEntity); auto* baseLoader = new Qt3DRender::QSceneLoader(baseModel); @@ -75,6 +88,15 @@ void View3DBase::initScene() baseModel->addComponent(baseLoader); baseModel->addComponent(m_baseTransform); + connect(baseLoader, &Qt3DRender::QSceneLoader::statusChanged, + this, [=](Qt3DRender::QSceneLoader::Status status) { + + if (status == Qt3DRender::QSceneLoader::Ready) { + applyWhiteMaterialRecursive(baseModel); + } + }); + + // ===== 鍒涘缓 arm 鏍硅妭鐐 ===== auto* armModel = new Qt3DCore::QEntity(m_rootEntity); auto* armLoader = new Qt3DRender::QSceneLoader(armModel); @@ -85,6 +107,14 @@ void View3DBase::initScene() armModel->addComponent(armLoader); armModel->addComponent(m_armTransform); + connect(armLoader, &Qt3DRender::QSceneLoader::statusChanged, + this, [=](Qt3DRender::QSceneLoader::Status status) { + + if (status == Qt3DRender::QSceneLoader::Ready) { + applyWhiteMaterialRecursive(armModel); + } + }); + // 鍧愭爣杞翠緷鐒舵寕鍦 root锛屼笉浼氳绉诲姩 //createAxes(); @@ -100,6 +130,29 @@ void View3DBase::initScene() qDebug() << m_armTransform->matrix(); } +void View3DBase::applyWhiteMaterialRecursive(Qt3DCore::QEntity* entity) +{ + // 濡傛灉杩欎釜 entity 鏈 mesh锛屽氨缁欏畠鍔犵櫧鑹叉潗璐 + auto meshes = entity->componentsOfType(); + if (!meshes.isEmpty()) { + auto* mat = new Qt3DExtras::QPhongMaterial(entity); + QColor c1("#cccccc"); + mat->setDiffuse(c1); + mat->setAmbient(c1); + mat->setSpecular(c1); + mat->setShininess(50.0f); + entity->addComponent(mat); + } + + // 閫掑綊澶勭悊瀛愯妭鐐 + const auto children = entity->children(); + for (QObject* obj : children) { + auto* childEntity = qobject_cast(obj); + if (childEntity) + applyWhiteMaterialRecursive(childEntity); + } +} + void View3DBase::createAxes() { // 鍙傛暟 diff --git a/HPPA/View3D.h b/HPPA/View3D.h index 9904395..9bbb63d 100644 --- a/HPPA/View3D.h +++ b/HPPA/View3D.h @@ -16,6 +16,7 @@ #include #include #include +#include class View3DBase : public QWidget { @@ -67,6 +68,8 @@ protected: Qt3DCore::QTransform* m_baseRootTransform = nullptr; Qt3DCore::QTransform* m_armRootTransform = nullptr; + void applyWhiteMaterialRecursive(Qt3DCore::QEntity* entity); + public Q_SLOTS: virtual void setLoc(std::vector loc) = 0; }; diff --git a/HPPA/adjustTable.ui b/HPPA/adjustTable.ui index d598679..b07a988 100644 --- a/HPPA/adjustTable.ui +++ b/HPPA/adjustTable.ui @@ -6,24 +6,127 @@ 0 0 - 687 - 389 + 501 + 363 + + + 0 + 0 + + adjustTable - - + + QGroupBox +{ + border: 12px solid transparent; + /*border-top: 12px solid transparent; + border-right: 0px solid transparent; + border-bottom: 0px solid transparent; + border-left: 0px solid transparent;*/ + color: #ACCDFF; +} + +QPushButton +{ + /*width: 172px; + height: 56px;*/ + font: 19pt "鏂板畫浣"; + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + border: none; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 鎸変笅鏃剁殑鏁堟灉 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 鍙夛細娣诲姞涓嬪帇鏁堟灉 */ + padding-top: 9px; + padding-bottom: 7px; +} + + + + + + Qt::Vertical + + + + 20 + 66 + + + + + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + 0 + 0 + + 252鍙峰崌闄嶅彴 - + + + 0 + + + 10 + + + 0 + + + 0 + + + 18 + - + 0 0 @@ -33,10 +136,10 @@ - + - + 0 0 @@ -46,10 +149,10 @@ - + - + 0 0 @@ -62,16 +165,63 @@ - + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + 0 + 0 + + 253鍙峰崌闄嶅彴 - + + + 0 + + + 10 + + + 0 + + + 0 + + + 18 + - + 0 0 @@ -81,10 +231,10 @@ - + - + 0 0 @@ -94,10 +244,10 @@ - + - + 0 0 @@ -110,16 +260,63 @@ - + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + 0 + 0 + + 254鍙峰崌闄嶅彴 - + + + 0 + + + 10 + + + 0 + + + 0 + + + 18 + - + 0 0 @@ -129,10 +326,10 @@ - + - + 0 0 @@ -142,10 +339,10 @@ - + - + 0 0 @@ -158,6 +355,32 @@ + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 65 + + + + diff --git a/HPPA/oneMotorControl.ui b/HPPA/oneMotorControl.ui index 44e3fa0..67c981a 100644 --- a/HPPA/oneMotorControl.ui +++ b/HPPA/oneMotorControl.ui @@ -6,217 +6,313 @@ 0 0 - 544 - 346 + 678 + 480 涓杞撮┈杈炬帶鍒 - - - - - - - - - 瀹炴椂浣嶇疆 - - - Qt::AlignCenter - - - - - - - 杩愯閫熷害 - - - Qt::AlignCenter - - - - - - - 杩斿洖閫熷害 - - - Qt::AlignCenter - - - - - - - - - - Qt::AlignCenter - - - - - - - - - - - 0 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 0.1 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 2 - - - Qt::AlignCenter - - - - - - - 0 - - - Qt::AlignCenter - - - - - - - - - - - - 0 - 0 - - - - 杩炴帴 - - - - - - - - 0 - 0 - - - - 褰掗浂 - - - - - - - - 0 - 0 - - - - 閲忕▼娴嬮噺 - - - - - - - 绉诲姩鑷 - - - - - - - + + QPushButton +{ + /*width: 172px; + height: 56px; + font: 19pt "鏂板畫浣";*/ + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 鎸変笅鏃剁殑鏁堟灉 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 鍙夛細娣诲姞涓嬪帇鏁堟灉 */ + padding-top: 9px; + padding-bottom: 7px; +} +QLabel +{ + color: #ACCDFF; + background-color: transparent; +} + + + + + +QLineEdit { + background-color: #142D7F; + color: #e6eeff; + border: 1px solid #2f6bff; + border-radius: 6px; + padding: 4px 8px; + min-width: 70px; + min-height: 20px; + font-size: 13px; +} +QLineEdit:hover { + border: 1px solid #4d8dff; +} + +QLineEdit:focus { + border: 1px solid #6aa2ff; + background-color: #23345c; +} + + + + + Qt::Vertical + + + + 20 + 87 + + + + + Qt::Horizontal - 161 + 127 20 - - - + + + + 10 + + + + + + 0 + 0 + + + + 瀹炴椂浣嶇疆 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 88 + 30 + + + + 0 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + 杩炴帴 + + + + + + + + 0 + 0 + + + + 杩愯閫熷害 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 88 + 30 + + + + + 16777215 + 16777215 + + + + + + + 0.1 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + 褰掗浂 + + + + + + + + 0 + 0 + + + + 杩斿洖閫熷害 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 88 + 30 + + + + 2 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + 閲忕▼娴嬮噺 + + + + + + + + 0 + 0 + + + + + 88 + 30 + + + + 0 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + 绉诲姩鑷 + + + + - + 0 0 @@ -226,10 +322,10 @@ - + - + 0 0 @@ -239,41 +335,64 @@ - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - 椹揪鐘舵 - - + + + + + + 鐘舵 + + + + + + + + 8 + 8 + + + + + 8 + 8 + + + + background-color: red; +border-radius: 4px; + + + + + + + - - + + + + Qt::Horizontal + + + + 127 + 20 + + + + + + Qt::Vertical 20 - 191 + 87 diff --git a/HPPA/twoMotorControl.ui b/HPPA/twoMotorControl.ui index c29a6f2..5e4f11b 100644 --- a/HPPA/twoMotorControl.ui +++ b/HPPA/twoMotorControl.ui @@ -6,13 +6,57 @@ 0 0 - 684 - 741 + 622 + 729 2杞撮┈杈炬帶鍒 + + QPushButton +{ + /*width: 172px; + height: 56px; + font: 19pt "鏂板畫浣";*/ + background-color: qlineargradient( + spread:pad, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #283D86, + stop:1 #0F1A40 + ); + color: white; + padding: 8px 16px; + border-radius: 4px; +} +QPushButton:hover +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #3A4875, + stop:1 #5F6B91 + ); +} +/* 鎸変笅鏃剁殑鏁堟灉 */ +QPushButton:pressed +{ + background-color: qlineargradient( + spread:pad, + x1:0, y1:0, x2:1, y2:0, + stop:0 #1A254F, + stop:1 #3A466B + ); + /* 鍙夛細娣诲姞涓嬪帇鏁堟灉 */ + padding-top: 9px; + padding-bottom: 7px; +} +QLabel +{ + color: #ACCDFF; + background-color: transparent; +} + 0 @@ -31,6 +75,37 @@ + + QScrollBar:vertical { + background: #0E1C4C; + width: 12px; +} + +QScrollBar::handle:vertical { + background: #4B60A6; + border-radius: 6px; + min-height: 20px; +} + +QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { + height: 0px; +} + +QScrollBar:horizontal { + background: #0E1C4C; + height: 12px; +} + +QScrollBar::handle:horizontal { + background: #4B60A6; + border-radius: 6px; + min-width: 20px; +} + +QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { + width: 0px; +} + QFrame::NoFrame @@ -42,66 +117,65 @@ 0 0 - 684 - 741 + 622 + 729 - + + QWidget #scrollAreaWidgetContents +{ + background: #0D1233; +} + + + + 6 + + + 6 + + + 6 + + + 6 + + + 6 + + + 12 + - - - - 0 - 0 - - - - - 16777215 - 180 - - - - - - - 鎺у埗 - - - - 0 - - - 0 - - - 0 - - - 0 - - - 6 - + + - + + + QPushButton +{ + border: 1px solid #5069BD; +} + - + 0 - - - - Qt::Horizontal - - - - 84 - 20 - - - - + + 0 + + + 0 + + + 0 + + + 0 + + + 4 + @@ -115,32 +189,6 @@ - - - - Qt::Horizontal - - - - 84 - 20 - - - - - - - - - 0 - 0 - - - - 杩炴帴 - - - @@ -154,19 +202,6 @@ - - - - Qt::Horizontal - - - - 66 - 20 - - - - @@ -175,37 +210,17 @@ 0 + + + 0 + 0 + + - - - - - 0 - 0 - - - - 褰掗浂 - - - - - - - Qt::Horizontal - - - - 84 - 19 - - - - @@ -219,20 +234,57 @@ - - - - Qt::Horizontal + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 4 + + + + + + 0 + 0 + - - - 84 - 19 - + + 杩炴帴 - + - + + + + + 0 + 0 + + + + 褰掗浂 + + + + @@ -248,917 +300,107 @@ - - - - 杩愯 - - - - - - - 鍋滄 - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 0 - - - - - - - - - - - - 0 - 0 - - - - - 16777215 - 127 - - - - #QGroupBox{border:none} - - - x椹揪 - - - - 0 - - - 0 - - - 0 - - - 0 - - - 6 - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 1 - - - - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - 16777215 - 16777215 - - - - 杩愬姩閫熷害 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 1 - - - Qt::AlignCenter - - - - - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - 16777215 - 16777215 - - - - 瀹炴椂浣嶇疆 - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 0 - - - Qt::AlignCenter - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 50 - 0 - - - - 鐘舵 - - - Qt::AlignCenter - - - - - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 50 - 16777215 - - - - 绉诲姩鑷 - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 0 - - - Qt::AlignCenter - - - - - - - - - 0 - 0 - - - - - 16777215 - 125 - - - - - - - y椹揪 - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - 杩愬姩閫熷害 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 1 - - - Qt::AlignCenter - - - - - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - 50 - 16777215 - - - - 瀹炴椂浣嶇疆 - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 0 - - - Qt::AlignCenter - - - - - - - - - Qt::Vertical - - - - 20 - 0 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 50 - 0 - - - - 鐘舵 - - - Qt::AlignCenter - - - - - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 50 - 16777215 - - - - 绉诲姩鑷 - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - background-color: rgb(255, 255, 255); - - - 0 - - - Qt::AlignCenter - - - - - - - - - + + QGroupBox +{ + border-top: 30px solid transparent; + border-right: 0px solid transparent; + border-bottom: 0px solid transparent; + border-left: 0px solid transparent; + + color: #E2EDFF; +} + 閲囬泦绾 - - 0 - - - 0 - - - 0 - - - 0 - - - - - - - 0 - 0 - - - - - 108 - 0 - - - - 楂樺害 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - 100 - - - Qt::AlignCenter - - - - - - - Qt::LeftToRight - - - 鐢熸垚杞ㄨ抗 - - - - - - - 淇濆瓨杞ㄨ抗 - - - - + + + 淇濆瓨杞ㄨ抗 + + + + + + + 娣诲姞 + + - - - - - - 0 - 0 - - - - - 108 - 0 - - - - 瑙嗗満瑙 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - 17.6 - - - Qt::AlignCenter - - - - - - - 鍒犻櫎杞ㄨ抗 - - - - - - - 璇诲彇杞ㄨ抗 - - - - + + + 璇诲彇杞ㄨ抗 + + - - - - - - - 0 - 0 - - - - - 108 - 0 - - - - 鍋忕Щ - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - 0 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - 骞呭 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - 0 - - - Qt::AlignCenter - - - true - - - - - - - 娣诲姞 - - - - + + + + 绉婚櫎 + + - - - - - - - 0 - 0 - - - - - 108 - 0 - - - - 閲嶅鐜(%) - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 0 - 0 - - - - 0 - - - Qt::AlignCenter - - - false - - - - - - - 闃堝 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - 0.7 - - - Qt::AlignCenter - - - false - - - - - - - 绉婚櫎 - - - - + + + + 鍒犻櫎鍏ㄩ儴 + + - + + + + 0 + 200 + + + + /* 琛ㄦ牸鏁翠綋 */ +QTableWidget { + background-color: #0E1C4C; + color: #ACCDFF; + gridline-color: #4B60A6; + border: 1px solid #4B60A6; +} + +/* 鈽 鍏抽敭锛氱┖鐧藉尯鍩燂紙浣犵澶存寚鐨勫湴鏂癸級 */ +QTableWidget QAbstractScrollArea::viewport { + background-color: #0E1C4C; +} + +/* 鍗曞厓鏍 */ +QTableWidget::item { + background-color: #0E1C4C; + color: #ACCDFF; +} + +/* 琛ㄥご */ +QHeaderView::section { + background-color: #0E1C4C; + color: #ACCDFF; + border: 1px solid #4B60A6; +} + +/* 鈽 琛ㄥご鍚庨潰鐨勭┖鐧藉尯鍩 */ +QHeaderView { + background-color: #0E1C4C; +} + +/* 鍙充笅瑙掔┖鐧 */ +QTableCornerButton::section { + background-color: #0E1C4C; + border: 1px solid #4B60A6; +} + 6 @@ -1197,6 +439,567 @@ + + + + QFrame #frame +{ + background: #0E1C4C; + border: 1px solid #5069BD; + border-radius: 4px 4px 4px 4px; +} + +QWidget #widget +{ + background: transparent; +} + +QWidget #widget_2 +{ + background: transparent; +} + +QLineEdit +{ + color: #ACCDFF; + border: none; + border-bottom: 1px solid #4B60A6; + background: transparent; +} +QLineEdit:focus +{ + background: rgba(255, 255, 255, 0.1); /* 鍗婇忔槑鐧借壊鑳屾櫙 */ +} + + + + QFrame::Box + + + 1 + + + 0 + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + 8 + 8 + + + + + 8 + 8 + + + + background-color: red; +border-radius: 4px; + + + + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + 绉诲姩鑷 + + + + + + + color: #E2EDFF; + + + y椹揪 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 0 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 1 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + 杩愬姩閫熷害 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + 瀹炴椂浣嶇疆 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 0 + + + Qt::AlignCenter + + + + + + + 鐘舵 + + + + + + + Qt::Horizontal + + + + 203 + 20 + + + + + + + + + + + + + + color: #E2EDFF; + + + x椹揪 + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + 203 + 20 + + + + + + + + 鐘舵 + + + + + + + + 0 + 0 + + + + + 8 + 8 + + + + + 8 + 8 + + + + background-color: red; +border-radius: 4px; + + + + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 50 + 0 + + + + + 16777215 + 16777215 + + + + 杩愬姩閫熷害 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 1 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 50 + 0 + + + + + 16777215 + 16777215 + + + + 瀹炴椂浣嶇疆 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 0 + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + 绉诲姩鑷 + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + 0 + + + Qt::AlignCenter + + + + + + + + + + color: #5069BD; + + + QFrame::Plain + + + 1 + + + Qt::Vertical + + + + + +