commit 3a0d6a188efbb69d9359be59c1286e90dde9b2cd Author: 徐超 Date: Thu Oct 31 17:47:16 2024 +0800 feat:煤流检测平台页面搭建 diff --git a/HX_CoalFlowDetect.pro b/HX_CoalFlowDetect.pro new file mode 100644 index 0000000..66617d5 --- /dev/null +++ b/HX_CoalFlowDetect.pro @@ -0,0 +1,46 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2024-10-30T15:56:33 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = HX_CoalFlowDetect +TEMPLATE = app + +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +CONFIG += c++11 + +SOURCES += \ + main.cpp \ + mainwindow.cpp + +HEADERS += \ + mainwindow.h + +FORMS += \ + mainwindow.ui + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target + +RESOURCES += \ + resource.qrc + +RC_ICONS = logo.ico + diff --git a/Resource/image/background.png b/Resource/image/background.png new file mode 100644 index 0000000..dd24e8d Binary files /dev/null and b/Resource/image/background.png differ diff --git a/Resource/image/beltCameraDemo.png b/Resource/image/beltCameraDemo.png new file mode 100644 index 0000000..1ff36f9 Binary files /dev/null and b/Resource/image/beltCameraDemo.png differ diff --git a/Resource/image/beltCamera_select.png b/Resource/image/beltCamera_select.png new file mode 100644 index 0000000..e7cde92 Binary files /dev/null and b/Resource/image/beltCamera_select.png differ diff --git a/Resource/image/beltCamera_unselect.png b/Resource/image/beltCamera_unselect.png new file mode 100644 index 0000000..49e1bcb Binary files /dev/null and b/Resource/image/beltCamera_unselect.png differ diff --git a/Resource/image/beltCamerabg.png b/Resource/image/beltCamerabg.png new file mode 100644 index 0000000..2d4301a Binary files /dev/null and b/Resource/image/beltCamerabg.png differ diff --git a/Resource/image/beltCloseState.png b/Resource/image/beltCloseState.png new file mode 100644 index 0000000..55f6d3b Binary files /dev/null and b/Resource/image/beltCloseState.png differ diff --git a/Resource/image/beltInfobg.png b/Resource/image/beltInfobg.png new file mode 100644 index 0000000..6377b76 Binary files /dev/null and b/Resource/image/beltInfobg.png differ diff --git a/Resource/image/beltOffline.png b/Resource/image/beltOffline.png new file mode 100644 index 0000000..7c6d12e Binary files /dev/null and b/Resource/image/beltOffline.png differ diff --git a/Resource/image/beltOnline.png b/Resource/image/beltOnline.png new file mode 100644 index 0000000..9cb463d Binary files /dev/null and b/Resource/image/beltOnline.png differ diff --git a/Resource/image/beltOperate.png b/Resource/image/beltOperate.png new file mode 100644 index 0000000..7e5bd52 Binary files /dev/null and b/Resource/image/beltOperate.png differ diff --git a/Resource/image/bukekong.png b/Resource/image/bukekong.png new file mode 100644 index 0000000..870ce96 Binary files /dev/null and b/Resource/image/bukekong.png differ diff --git a/Resource/image/close.png b/Resource/image/close.png new file mode 100644 index 0000000..709d63c Binary files /dev/null and b/Resource/image/close.png differ diff --git a/Resource/image/closeHover.png b/Resource/image/closeHover.png new file mode 100644 index 0000000..c78179f Binary files /dev/null and b/Resource/image/closeHover.png differ diff --git a/Resource/image/closePress.png b/Resource/image/closePress.png new file mode 100644 index 0000000..3c9a53e Binary files /dev/null and b/Resource/image/closePress.png differ diff --git a/Resource/image/coalDistributbg.png b/Resource/image/coalDistributbg.png new file mode 100644 index 0000000..251aefd Binary files /dev/null and b/Resource/image/coalDistributbg.png differ diff --git a/Resource/image/coalStatisbg.png b/Resource/image/coalStatisbg.png new file mode 100644 index 0000000..3b618c8 Binary files /dev/null and b/Resource/image/coalStatisbg.png differ diff --git a/Resource/image/dianji.png b/Resource/image/dianji.png new file mode 100644 index 0000000..d70208b Binary files /dev/null and b/Resource/image/dianji.png differ diff --git a/Resource/image/electric.png b/Resource/image/electric.png new file mode 100644 index 0000000..7e95504 Binary files /dev/null and b/Resource/image/electric.png differ diff --git a/Resource/image/icon1.png b/Resource/image/icon1.png new file mode 100644 index 0000000..fa4a6f9 Binary files /dev/null and b/Resource/image/icon1.png differ diff --git a/Resource/image/icon2.png b/Resource/image/icon2.png new file mode 100644 index 0000000..7756b1f Binary files /dev/null and b/Resource/image/icon2.png differ diff --git a/Resource/image/icon3.png b/Resource/image/icon3.png new file mode 100644 index 0000000..09c73fc Binary files /dev/null and b/Resource/image/icon3.png differ diff --git a/Resource/image/icon4.png b/Resource/image/icon4.png new file mode 100644 index 0000000..73fb235 Binary files /dev/null and b/Resource/image/icon4.png differ diff --git a/Resource/image/icon5.png b/Resource/image/icon5.png new file mode 100644 index 0000000..4841511 Binary files /dev/null and b/Resource/image/icon5.png differ diff --git a/Resource/image/icon6.png b/Resource/image/icon6.png new file mode 100644 index 0000000..9642d5b Binary files /dev/null and b/Resource/image/icon6.png differ diff --git a/Resource/image/jianxiu.png b/Resource/image/jianxiu.png new file mode 100644 index 0000000..7b1962f Binary files /dev/null and b/Resource/image/jianxiu.png differ diff --git a/Resource/image/jikong.png b/Resource/image/jikong.png new file mode 100644 index 0000000..f56b0dd Binary files /dev/null and b/Resource/image/jikong.png differ diff --git a/Resource/image/jiudi.png b/Resource/image/jiudi.png new file mode 100644 index 0000000..2087134 Binary files /dev/null and b/Resource/image/jiudi.png differ diff --git a/Resource/image/kekong.png b/Resource/image/kekong.png new file mode 100644 index 0000000..03e07b9 Binary files /dev/null and b/Resource/image/kekong.png differ diff --git a/Resource/image/labelSelect.png b/Resource/image/labelSelect.png new file mode 100644 index 0000000..9da9f72 Binary files /dev/null and b/Resource/image/labelSelect.png differ diff --git a/Resource/image/labelhover.png b/Resource/image/labelhover.png new file mode 100644 index 0000000..9e1c23c Binary files /dev/null and b/Resource/image/labelhover.png differ diff --git a/Resource/image/labelunSelect.png b/Resource/image/labelunSelect.png new file mode 100644 index 0000000..1bdb7c2 Binary files /dev/null and b/Resource/image/labelunSelect.png differ diff --git a/Resource/image/logo.png b/Resource/image/logo.png new file mode 100644 index 0000000..214f20d Binary files /dev/null and b/Resource/image/logo.png differ diff --git a/Resource/image/max.png b/Resource/image/max.png new file mode 100644 index 0000000..feb6320 Binary files /dev/null and b/Resource/image/max.png differ diff --git a/Resource/image/maxHover.png b/Resource/image/maxHover.png new file mode 100644 index 0000000..6b94cbd Binary files /dev/null and b/Resource/image/maxHover.png differ diff --git a/Resource/image/maxPress.png b/Resource/image/maxPress.png new file mode 100644 index 0000000..1cb2f8e Binary files /dev/null and b/Resource/image/maxPress.png differ diff --git a/Resource/image/min.png b/Resource/image/min.png new file mode 100644 index 0000000..783a88e Binary files /dev/null and b/Resource/image/min.png differ diff --git a/Resource/image/minHover.png b/Resource/image/minHover.png new file mode 100644 index 0000000..c4eef4a Binary files /dev/null and b/Resource/image/minHover.png differ diff --git a/Resource/image/minPress.png b/Resource/image/minPress.png new file mode 100644 index 0000000..a5143b1 Binary files /dev/null and b/Resource/image/minPress.png differ diff --git a/Resource/image/oneClickStart.png b/Resource/image/oneClickStart.png new file mode 100644 index 0000000..86cad80 Binary files /dev/null and b/Resource/image/oneClickStart.png differ diff --git a/Resource/image/oneClickStartHover.png b/Resource/image/oneClickStartHover.png new file mode 100644 index 0000000..70fe3b6 Binary files /dev/null and b/Resource/image/oneClickStartHover.png differ diff --git a/Resource/image/oneClickStartPress.png b/Resource/image/oneClickStartPress.png new file mode 100644 index 0000000..c16d182 Binary files /dev/null and b/Resource/image/oneClickStartPress.png differ diff --git a/Resource/image/oneClickStop.png b/Resource/image/oneClickStop.png new file mode 100644 index 0000000..2ee5452 Binary files /dev/null and b/Resource/image/oneClickStop.png differ diff --git a/Resource/image/oneClickStopHover.png b/Resource/image/oneClickStopHover.png new file mode 100644 index 0000000..7296de3 Binary files /dev/null and b/Resource/image/oneClickStopHover.png differ diff --git a/Resource/image/oneClickStopPress.png b/Resource/image/oneClickStopPress.png new file mode 100644 index 0000000..6ee9e3c Binary files /dev/null and b/Resource/image/oneClickStopPress.png differ diff --git a/Resource/image/pdj.png b/Resource/image/pdj.png new file mode 100644 index 0000000..7e5bd52 Binary files /dev/null and b/Resource/image/pdj.png differ diff --git a/Resource/image/pdqd.png b/Resource/image/pdqd.png new file mode 100644 index 0000000..6377b76 Binary files /dev/null and b/Resource/image/pdqd.png differ diff --git a/Resource/image/pdsd.png b/Resource/image/pdsd.png new file mode 100644 index 0000000..251aefd Binary files /dev/null and b/Resource/image/pdsd.png differ diff --git a/Resource/image/shoudong.png b/Resource/image/shoudong.png new file mode 100644 index 0000000..2032a0e Binary files /dev/null and b/Resource/image/shoudong.png differ diff --git a/Resource/image/speed.png b/Resource/image/speed.png new file mode 100644 index 0000000..b02718e Binary files /dev/null and b/Resource/image/speed.png differ diff --git a/Resource/image/speedModel.png b/Resource/image/speedModel.png new file mode 100644 index 0000000..debdd06 Binary files /dev/null and b/Resource/image/speedModel.png differ diff --git a/Resource/image/start.png b/Resource/image/start.png new file mode 100644 index 0000000..245bad4 Binary files /dev/null and b/Resource/image/start.png differ diff --git a/Resource/image/startHover.png b/Resource/image/startHover.png new file mode 100644 index 0000000..1c32a7b Binary files /dev/null and b/Resource/image/startHover.png differ diff --git a/Resource/image/startPress.png b/Resource/image/startPress.png new file mode 100644 index 0000000..245bad4 Binary files /dev/null and b/Resource/image/startPress.png differ diff --git a/Resource/image/stop.png b/Resource/image/stop.png new file mode 100644 index 0000000..0fc6603 Binary files /dev/null and b/Resource/image/stop.png differ diff --git a/Resource/image/stopHover.png b/Resource/image/stopHover.png new file mode 100644 index 0000000..f990525 Binary files /dev/null and b/Resource/image/stopHover.png differ diff --git a/Resource/image/stopPress.png b/Resource/image/stopPress.png new file mode 100644 index 0000000..0fc6603 Binary files /dev/null and b/Resource/image/stopPress.png differ diff --git a/Resource/image/temperature.png b/Resource/image/temperature.png new file mode 100644 index 0000000..47bc6f7 Binary files /dev/null and b/Resource/image/temperature.png differ diff --git a/Resource/image/title.png b/Resource/image/title.png new file mode 100644 index 0000000..ddc155d Binary files /dev/null and b/Resource/image/title.png differ diff --git a/Resource/image/warningInfobg.png b/Resource/image/warningInfobg.png new file mode 100644 index 0000000..d25f7e6 Binary files /dev/null and b/Resource/image/warningInfobg.png differ diff --git a/Resource/image/wind.png b/Resource/image/wind.png new file mode 100644 index 0000000..9ef1715 Binary files /dev/null and b/Resource/image/wind.png differ diff --git a/Resource/image/zidong.png b/Resource/image/zidong.png new file mode 100644 index 0000000..8d09b85 Binary files /dev/null and b/Resource/image/zidong.png differ diff --git a/logo.ico b/logo.ico new file mode 100644 index 0000000..b17e78f Binary files /dev/null and b/logo.ico differ diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..acfb321 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char* argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.showMaximized(); + + return a.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 0000000..2384f62 --- /dev/null +++ b/mainwindow.cpp @@ -0,0 +1,52 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +#include +#include + +MainWindow::MainWindow(QWidget* parent) + : QMainWindow(parent) + , ui(new Ui::MainWindow) +{ + ui->setupUi(this); + this->setWindowFlag(Qt::FramelessWindowHint); + this->setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint | Qt::WindowMinimizeButtonHint); + + calendarLoopPlay(); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + +void MainWindow::on_pushButton_close_clicked() +{ + this->close(); +} + +void MainWindow::on_pushButton_max_clicked() +{ + if (isFullScreen()) { + this->showMaximized(); + } else { + this->showFullScreen(); + } +} + +void MainWindow::on_pushButton_min_clicked() +{ + this->showMinimized(); +} + +void MainWindow::calendarLoopPlay() +{ + ui->label_calendar->clear(); + QTimer* timer_calendar = new QTimer(this); + connect(timer_calendar, &QTimer::timeout, this, [this]() { + QDateTime time = QDateTime::currentDateTime(); + QString str = time.toString("yyyy-MM-dd hh:mm:ss dddd"); + ui->label_calendar->setText(str); + }); + timer_calendar->start(1000); //每一秒溢出一次进入槽函数 +} diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..8201905 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,34 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow { + Q_OBJECT + +public: + explicit MainWindow(QWidget* parent = nullptr); + ~MainWindow(); + +private slots: + void on_pushButton_close_clicked(); + + void on_pushButton_max_clicked(); + + void on_pushButton_min_clicked(); + +private: + /** + * @brief calendarLoopPlay 时间轮播 + */ + void calendarLoopPlay(); + +private: + Ui::MainWindow* ui; +}; + +#endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..ddb22dc --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,2947 @@ + + + MainWindow + + + + 0 + 0 + 1920 + 1080 + + + + MainWindow + + + + :/Resource/image/logo.png:/Resource/image/logo.png + + + + #centralWidget{ + background-color: rgb(5, 13, 18); + border-image: url(:/Resource/image/background.png); +} + + + + 6 + + + 6 + + + 6 + + + 6 + + + + + + 0 + 71 + + + + #widget_head{ + + border-image: url(:/Resource/image/title.png); +} + + + + 65 + + + 320 + + + 30 + + + 20 + + + + + #label_title{ + color:white; + font: 24pt "黑体"; +} + + + 玉泉煤流检测 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 268 + 0 + + + + #label_calendar{ + color:white; + font: 16pt "黑体"; +} + + + 2024年10月31日 星期一 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + 15 + + + 9 + + + + + + 28 + 28 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/min.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/minHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/minPress.png); +} + + + + + + + + + + + 28 + 28 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/max.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/maxHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/maxPress.png); +} + + + + + + + + + + + 28 + 28 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/close.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/closeHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/closePress.png); +} + + + + + + + + + + + + + + + + + + + 6 + + + 0 + + + + + + + #widget_beltOperate{ + + border-image: url(:/Resource/image/beltOperate.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 9 + + + QLayout::SetMaximumSize + + + 9 + + + 9 + + + + + 0 + + + QLayout::SetDefaultConstraint + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_beltOperateLogo{ + border-image: url(:/Resource/image/icon1.png); +} + + + + + + + #label_beltTitle{ + color:white; + font: 12pt "黑体"; +} + + + 皮带机集控站 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 48 + 17 + + + + #label_beltState{ + + background-image: url(:/Resource/image/beltOffline.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + 5 + + + QLayout::SetDefaultConstraint + + + + + + 90 + 24 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/jikong.png) center no-repeat; + font-size: 14px; + border: none; +} +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + + 集控 + + + true + + + false + + + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/jiudi.png) center no-repeat; + font-size: 14px; + border: none; +} +QToolButton:hover{ + border-image:url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + 检修 + + + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/jiudi.png) center no-repeat; + font-size: 14px; + border: none; +} +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + 点动 + + + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/jiudi.png) center no-repeat; + font-size: 14px; + border: none; +} +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + 就地 + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + QLayout::SetDefaultConstraint + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 45 + + + + QPushButton{ + border-image: url(:/Resource/image/oneClickStart.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/oneClickStartHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/oneClickStartPress.png); +} + + + + + + + + + + + + 100 + 45 + + + + QPushButton{ + background-color: transparent; + border-image: url(:/Resource/image/oneClickStop.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/oneClickStopHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/oneClickStopPress.png); +} + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + #widget_speedModel{ + border-image: url(:/Resource/image/speedModel.png); +} + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_speedmodellogo{ + border-image: url(:/Resource/image/icon2.png); +} + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 调速模式选择 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 25 + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/kekong.png) center no-repeat; + font-size: 14px; + border: none; +} + +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + + 可控 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/bukekong.png) center no-repeat; + font-size: 14px; + border: none; +} + +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + + 不可控 + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 25 + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/shoudong.png) center no-repeat; + font-size: 14px; + border: none; +} + +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + + 手动 + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 90 + 25 + + + + QToolButton{ + border-image: url(:/Resource/image/labelunSelect.png); + color:white; + margin-left:-30px; + padding-left:60px; + background:url(:/Resource/image/zidong.png) center no-repeat; + font-size: 14px; + border: none;; +} + +QToolButton:hover{ + border-image: url(:/Resource/image/labelhover.png); +} + +QToolButton:pressed{ + border-image: url(:/Resource/image/labelSelect.png); +} + + + + 自动 + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 0 + + + 25 + + + 10 + + + 0 + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 一键频率下发 + + + + + + + + + + + Qt::Horizontal + + + + + + + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 怠速 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 中速 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 全速 + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + 0 + + + + + 160 + 26 + + + + #widget_beltLogo1{ + color:white; + border-image: url(:/Resource/image/beltCamera_unselect.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 40 + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 1#皮带煤量相机 + + + + + + + + + + + + + + + + + + + + + #widget_belt1video{ + border-image: url(:/Resource/image/beltCameraDemo.png); +} + + + + + + + #widget_belt1Info{ + + border-image: url(:/Resource/image/beltInfobg.png); +} + + + + 0 + + + 6 + + + 6 + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/speed.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 速度:10m/s + + + + + + + 24 + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/electric.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 电流:10A + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/temperature.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 温度:10℃ + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/wind.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 绕组:10 + + + + + + + Qt::Horizontal + + + + + + + + + + + + + 0 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 48 + 48 + + + + Qt::RightToLeft + + + QLabel{ + background-image: url(:/Resource/image/beltOffline.png); + background-repeat:no-repeat; + background-position:top; +} + + + + + + Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing + + + + + + + + + 15 + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/start.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/startHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/startPress.png); +} + + + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/stop.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/stopHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/stopPress.png); +} + + + + + + + + + + + + 0 + + + 4 + + + 5 + + + 2 + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 启动 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 停止 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + 0 + + + + + 160 + 26 + + + + #widget_beltLogo2{ + color:white; + border-image: url(:/Resource/image/beltCamera_unselect.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 40 + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 2#皮带煤量相机 + + + + + + + + + + + + + + + + + + + + + #widget_belt2video{ + border-image: url(:/Resource/image/beltCameraDemo.png); +} + + + + + + + #widget_belt2Info{ + + border-image: url(:/Resource/image/beltInfobg.png); +} + + + + 0 + + + 6 + + + 6 + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/speed.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 速度:10m/s + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/electric.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 电流:10A + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/temperature.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 温度:10℃ + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/wind.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 绕组:10 + + + + + + + Qt::Horizontal + + + + + + + + + + + + + 0 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 48 + 48 + + + + QLabel{ + background-image: url(:/Resource/image/beltOffline.png); + background-repeat:no-repeat; + background-position:top; +} + + + + + + + + + + + + 15 + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/start.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/startHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/startPress.png); +} + + + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/stop.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/stopHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/stopPress.png); +} + + + + + + + + + + + + 0 + + + 4 + + + 5 + + + 2 + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 启动 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 停止 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + + + + + + + + + + + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + 0 + + + + + 160 + 26 + + + + #widget_beltLogo3{ + color:white; + border-image: url(:/Resource/image/beltCamera_unselect.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + 40 + + + + + QLabel{ + color:white; + font: 10pt "黑体"; +} + + + 3#皮带煤量相机 + + + + + + + + + + + + + + + + + + + + + #widget_belt3video{ + border-image: url(:/Resource/image/beltCameraDemo.png); +} + + + + + + + #widget_belt3Info{ + border-image: url(:/Resource/image/beltInfobg.png); +} + + + + 0 + + + 6 + + + 6 + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/speed.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 速度:10m/s + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/electric.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 电流:10A + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/temperature.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 温度:10℃ + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + 0 + 0 + + + + + 25 + 25 + + + + QLabel{ + background-image: url(:/Resource/image/wind.png); + background-repeat:no-repeat; + background-position:center; +} + + + + + + + + + + + + QLabel{ + font: 10pt "黑体"; + color: rgb(255, 255, 255); +} + + + 绕组:10 + + + + + + + Qt::Horizontal + + + + + + + + + + + + + 0 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 48 + 48 + + + + QLabel{ + background-image: url(:/Resource/image/beltOffline.png); + background-repeat:no-repeat; + background-position:top; +} + + + + + + + + + + + + 15 + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/start.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/startHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/startPress.png); +} + + + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + QPushButton{ + border:0px; + border-image: url(:/Resource/image/stop.png); +} +QPushButton:hover{ + border-image: url(:/Resource/image/stopHover.png); +} +QPushButton:pressed{ + border-image: url(:/Resource/image/stopPress.png); +} + + + + + + + + + + + + 0 + + + 4 + + + 5 + + + 2 + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 启动 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + QLabel{ + color: rgb(255, 255, 255); + font: 10pt "黑体"; +} + + + 停止 + + + Qt::AlignHCenter|Qt::AlignTop + + + + + + + + + + + + + + + + + + + + + + + + + #widget_coalDistribut{ + + border-image: url(:/Resource/image/coalDistributbg.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_coalDistributLogo{ + border-image: url(:/Resource/image/icon4.png); +} + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 煤流分布 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + + #widget_beltSpeed{ + + border-image: url(:/Resource/image/coalDistributbg.png); +} + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_beltSpeedlogo{ + border-image: url(:/Resource/image/icon5.png); +} + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 皮带机速度曲线 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + + + + + + 6 + + + 0 + + + + + #widget_warnInfo{ + border-image: url(:/Resource/image/warningInfobg.png); +} + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_warnInfoLogo{ + border-image: url(:/Resource/image/icon3.png); +} + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 皮带报警信息 + + + + + + + + + + + + + + + #widget_beltCamera{ + + border-image: url(:/Resource/image/beltCamerabg.png); +} + + + + 0 + + + 4 + + + 0 + + + 0 + + + + + 45 + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 1#皮带煤量相机 + + + + + + + + + + + + + + + #widget_coalStatis{ + + border-image: url(:/Resource/image/coalStatisbg.png); +} + + + + + + + + + 0 + 0 + + + + + 35 + 35 + + + + #widget_coalStaticLogo{ + border-image: url(:/Resource/image/icon6.png); +} + + + + + + + QLabel{ + color:white; + font: 12pt "黑体"; +} + + + 煤量统计 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resource.qrc b/resource.qrc new file mode 100644 index 0000000..42f1898 --- /dev/null +++ b/resource.qrc @@ -0,0 +1,62 @@ + + + Resource/image/background.png + Resource/image/title.png + Resource/image/logo.png + Resource/image/beltOperate.png + Resource/image/speedModel.png + Resource/image/beltCamera_select.png + Resource/image/beltCamera_unselect.png + Resource/image/beltCamerabg.png + Resource/image/beltCameraDemo.png + Resource/image/coalDistributbg.png + Resource/image/coalStatisbg.png + Resource/image/dianji.png + Resource/image/electric.png + Resource/image/icon1.png + Resource/image/icon2.png + Resource/image/icon3.png + Resource/image/icon4.png + Resource/image/icon5.png + Resource/image/icon6.png + Resource/image/jianxiu.png + Resource/image/jikong.png + Resource/image/jiudi.png + Resource/image/labelSelect.png + Resource/image/labelunSelect.png + Resource/image/oneClickStart.png + Resource/image/oneClickStop.png + Resource/image/speed.png + Resource/image/start.png + Resource/image/stop.png + Resource/image/temperature.png + Resource/image/beltCloseState.png + Resource/image/labelhover.png + Resource/image/warningInfobg.png + Resource/image/closePress.png + Resource/image/max.png + Resource/image/min.png + Resource/image/beltInfobg.png + Resource/image/wind.png + Resource/image/beltOffline.png + Resource/image/beltOnline.png + Resource/image/close.png + Resource/image/closeHover.png + Resource/image/maxHover.png + Resource/image/maxPress.png + Resource/image/minHover.png + Resource/image/minPress.png + Resource/image/bukekong.png + Resource/image/kekong.png + Resource/image/shoudong.png + Resource/image/zidong.png + Resource/image/oneClickStartHover.png + Resource/image/oneClickStartPress.png + Resource/image/oneClickStopHover.png + Resource/image/oneClickStopPress.png + Resource/image/startHover.png + Resource/image/startPress.png + Resource/image/stopHover.png + Resource/image/stopPress.png + +