加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ui_mainwindow.h 11.48 KB
一键复制 编辑 原始数据 按行查看 历史
pengjinlu 提交于 2023-12-21 11:32 . 增加视频播放器接口
/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.14.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QStackedWidget>
#include <QtWidgets/QWidget>
#include "videoslider.h"
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QWidget *centralWidget;
QGridLayout *gridLayout_2;
QStackedWidget *stackedWidget;
QWidget *page_1;
QGridLayout *gridLayout;
QSpacerItem *horizontalSpacer_1;
QPushButton *pushButton_openFile;
QSpacerItem *horizontalSpacer_2;
QWidget *page_2;
QGridLayout *gridLayout_3;
QScrollArea *scrollArea;
QWidget *scrollAreaWidgetContents;
QGridLayout *gridLayout_4;
QLabel *label_video;
QHBoxLayout *horizontalLayout_1;
QPushButton *pushButton_play;
QPushButton *pushButton_pause;
QPushButton *pushButton_stop;
VideoSlider *horizontalSlider_video;
QLabel *label_currentTime;
QLabel *label_slash;
QLabel *label_totalTime;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(763, 504);
QFont font;
font.setFamily(QString::fromUtf8("Microsoft YaHei UI"));
MainWindow->setFont(font);
MainWindow->setStyleSheet(QString::fromUtf8("background-color: rgb(22, 22, 22);"));
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QString::fromUtf8("centralWidget"));
gridLayout_2 = new QGridLayout(centralWidget);
gridLayout_2->setSpacing(6);
gridLayout_2->setContentsMargins(11, 11, 11, 11);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
gridLayout_2->setVerticalSpacing(4);
gridLayout_2->setContentsMargins(6, 6, 6, 6);
stackedWidget = new QStackedWidget(centralWidget);
stackedWidget->setObjectName(QString::fromUtf8("stackedWidget"));
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(stackedWidget->sizePolicy().hasHeightForWidth());
stackedWidget->setSizePolicy(sizePolicy);
page_1 = new QWidget();
page_1->setObjectName(QString::fromUtf8("page_1"));
page_1->setStyleSheet(QString::fromUtf8(""));
gridLayout = new QGridLayout(page_1);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setContentsMargins(0, 0, 0, 0);
horizontalSpacer_1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer_1, 0, 0, 1, 1);
pushButton_openFile = new QPushButton(page_1);
pushButton_openFile->setObjectName(QString::fromUtf8("pushButton_openFile"));
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(pushButton_openFile->sizePolicy().hasHeightForWidth());
pushButton_openFile->setSizePolicy(sizePolicy1);
pushButton_openFile->setMinimumSize(QSize(120, 36));
pushButton_openFile->setMaximumSize(QSize(120, 36));
QFont font1;
font1.setFamily(QString::fromUtf8("Microsoft YaHei UI"));
font1.setPointSize(10);
pushButton_openFile->setFont(font1);
pushButton_openFile->setStyleSheet(QString::fromUtf8("background-color: rgb(255, 255, 255);"));
gridLayout->addWidget(pushButton_openFile, 0, 1, 1, 1);
horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer_2, 0, 2, 1, 1);
stackedWidget->addWidget(page_1);
page_2 = new QWidget();
page_2->setObjectName(QString::fromUtf8("page_2"));
gridLayout_3 = new QGridLayout(page_2);
gridLayout_3->setSpacing(6);
gridLayout_3->setContentsMargins(11, 11, 11, 11);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
gridLayout_3->setContentsMargins(0, 0, 0, 0);
scrollArea = new QScrollArea(page_2);
scrollArea->setObjectName(QString::fromUtf8("scrollArea"));
scrollArea->setFrameShape(QFrame::NoFrame);
scrollArea->setFrameShadow(QFrame::Plain);
scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollArea->setWidgetResizable(true);
scrollArea->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
scrollAreaWidgetContents = new QWidget();
scrollAreaWidgetContents->setObjectName(QString::fromUtf8("scrollAreaWidgetContents"));
scrollAreaWidgetContents->setGeometry(QRect(0, 0, 751, 450));
gridLayout_4 = new QGridLayout(scrollAreaWidgetContents);
gridLayout_4->setSpacing(6);
gridLayout_4->setContentsMargins(11, 11, 11, 11);
gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
gridLayout_4->setContentsMargins(0, 0, 0, 0);
label_video = new QLabel(scrollAreaWidgetContents);
label_video->setObjectName(QString::fromUtf8("label_video"));
label_video->setScaledContents(true);
gridLayout_4->addWidget(label_video, 0, 0, 1, 1);
scrollArea->setWidget(scrollAreaWidgetContents);
gridLayout_3->addWidget(scrollArea, 0, 0, 1, 1);
stackedWidget->addWidget(page_2);
gridLayout_2->addWidget(stackedWidget, 0, 0, 1, 1);
horizontalLayout_1 = new QHBoxLayout();
horizontalLayout_1->setSpacing(6);
horizontalLayout_1->setObjectName(QString::fromUtf8("horizontalLayout_1"));
pushButton_play = new QPushButton(centralWidget);
pushButton_play->setObjectName(QString::fromUtf8("pushButton_play"));
pushButton_play->setMinimumSize(QSize(36, 36));
pushButton_play->setStyleSheet(QString::fromUtf8("QPushButton{ \n"
"image: url(:images/start_normal.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:hover{ \n"
"image: url(:images/start_focus.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:pressed{ \n"
"image: url(:images/start_normal.png);\n"
"border-radius:0px; \n"
"}\n"
""));
horizontalLayout_1->addWidget(pushButton_play);
pushButton_pause = new QPushButton(centralWidget);
pushButton_pause->setObjectName(QString::fromUtf8("pushButton_pause"));
pushButton_pause->setMinimumSize(QSize(36, 36));
pushButton_pause->setStyleSheet(QString::fromUtf8("QPushButton{ \n"
"image: url(:images/pause_normal.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:hover{ \n"
"image: url(:images/pause_focus.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:pressed{ \n"
"image: url(:images/pause_normal.png);\n"
"border-radius:0px; \n"
"}\n"
""));
horizontalLayout_1->addWidget(pushButton_pause);
pushButton_stop = new QPushButton(centralWidget);
pushButton_stop->setObjectName(QString::fromUtf8("pushButton_stop"));
pushButton_stop->setMinimumSize(QSize(36, 36));
pushButton_stop->setStyleSheet(QString::fromUtf8("QPushButton{ \n"
"image: url(:images/stop_normal.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:hover{ \n"
"image: url(:images/stop_focus.png);\n"
"border-radius:0px; \n"
"} \n"
"QPushButton:pressed{ \n"
"image: url(:images/stop_normal.png);\n"
"border-radius:0px; \n"
"}\n"
""));
horizontalLayout_1->addWidget(pushButton_stop);
horizontalSlider_video = new VideoSlider(centralWidget);
horizontalSlider_video->setObjectName(QString::fromUtf8("horizontalSlider_video"));
horizontalSlider_video->setStyleSheet(QString::fromUtf8("QSlider::handle:horizontal{\n"
" background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop: 0.6 #45ADED, stop: 0.778409 rgba(255, 255, 255, 255));\n"
" width: 11px;\n"
" margin-top: -3px;\n"
" margin-bottom: -3px;\n"
" border-radius: 5px;\n"
"}"));
horizontalSlider_video->setMinimum(0);
horizontalSlider_video->setMaximum(100);
horizontalSlider_video->setSingleStep(1);
horizontalSlider_video->setPageStep(10);
horizontalSlider_video->setValue(0);
horizontalSlider_video->setOrientation(Qt::Horizontal);
horizontalLayout_1->addWidget(horizontalSlider_video);
label_currentTime = new QLabel(centralWidget);
label_currentTime->setObjectName(QString::fromUtf8("label_currentTime"));
label_currentTime->setStyleSheet(QString::fromUtf8("QLabel{\n"
"border-radius:0px;\n"
"color: #F0F0F0;\n"
"background-color:rgba(0,0,0,0);\n"
"border-style:none;\n"
"font-family:\"\345\276\256\350\275\257\351\233\205\351\273\221\";\n"
"font-size:16px;\n"
"}"));
horizontalLayout_1->addWidget(label_currentTime);
label_slash = new QLabel(centralWidget);
label_slash->setObjectName(QString::fromUtf8("label_slash"));
label_slash->setStyleSheet(QString::fromUtf8("QLabel{\n"
"border-radius:0px;\n"
"color: #F0F0F0;\n"
"background-color:rgba(0,0,0,0);\n"
"border-style:none;\n"
"font-family:\"\345\276\256\350\275\257\351\233\205\351\273\221\";\n"
"font-size:16px;\n"
"}\n"
""));
horizontalLayout_1->addWidget(label_slash);
label_totalTime = new QLabel(centralWidget);
label_totalTime->setObjectName(QString::fromUtf8("label_totalTime"));
label_totalTime->setStyleSheet(QString::fromUtf8("QLabel{\n"
"border-radius:0px;\n"
"color: #F0F0F0;\n"
"background-color:rgba(0,0,0,0);\n"
"border-style:none;\n"
"font-family:\"\345\276\256\350\275\257\351\233\205\351\273\221\";\n"
"font-size:16px;\n"
"}\n"
""));
horizontalLayout_1->addWidget(label_totalTime);
gridLayout_2->addLayout(horizontalLayout_1, 1, 0, 1, 1);
MainWindow->setCentralWidget(centralWidget);
retranslateUi(MainWindow);
stackedWidget->setCurrentIndex(1);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MiniVideo V1.0.1", nullptr));
pushButton_openFile->setText(QCoreApplication::translate("MainWindow", "\346\211\223\345\274\200\346\226\207\344\273\266", nullptr));
label_video->setText(QString());
pushButton_play->setText(QString());
pushButton_pause->setText(QString());
pushButton_stop->setText(QString());
label_currentTime->setText(QCoreApplication::translate("MainWindow", "00:00:00", nullptr));
label_slash->setText(QCoreApplication::translate("MainWindow", "/", nullptr));
label_totalTime->setText(QCoreApplication::translate("MainWindow", "00:00:00", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_MAINWINDOW_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化