提交 595b06fe 编写于 作者: 花狗Fdog's avatar 花狗Fdog

创建标签栏

上级 49a20354
......@@ -25,10 +25,16 @@ DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \
main.cpp \
mainwindow.cpp
mainwindow.cpp \
colorform.cpp
HEADERS += \
mainwindow.h
mainwindow.h \
colorform.h
FORMS += \
mainwindow.ui
mainwindow.ui \
colorform.ui
RESOURCES += \
lib.qrc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.0, 2020-09-21T22:31:56. -->
<!-- Written by QtCreator 4.5.0, 2020-09-22T15:11:59. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......@@ -66,7 +66,7 @@
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/FdogProject/build-FdogQtStyleSheetSuper-Desktop_Qt_5_10_0_MSVC2015_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:/FdogProject/FdogQtStyleSheetSuper</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
......@@ -282,14 +282,17 @@
<value type="int">13</value>
<value type="int">14</value>
</valuelist>
<value type="int" key="PE.EnvironmentAspect.Base">-1</value>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Arguments"></value>
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
<value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.WorkingDirectory">%{buildDir}</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Custom Executable</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">FdogQtStyleSheetSuper</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/FdogProject/FdogQtStyleSheetSuper/FdogQtStyleSheetSuper.pro</value>
<value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">FdogQtStyleSheetSuper.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/FdogProject/FdogQtStyleSheetSuper</value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
......
......@@ -210,6 +210,7 @@ Makefile: FdogQtStyleSheetSuper.pro ..\..\QT\5.10.0\msvc2015_64\mkspecs\win32-ms
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\qt_config.prf \
..\..\QT\5.10.0\msvc2015_64\mkspecs\win32-msvc\qmake.conf \
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\spec_post.prf \
.qmake.stash \
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\exclusive_builds.prf \
..\..\QT\5.10.0\msvc2015_64\mkspecs\common\msvc-version.conf \
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\toolchain.prf \
......@@ -374,6 +375,7 @@ Makefile: FdogQtStyleSheetSuper.pro ..\..\QT\5.10.0\msvc2015_64\mkspecs\win32-ms
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\qt_config.prf:
..\..\QT\5.10.0\msvc2015_64\mkspecs\win32-msvc\qmake.conf:
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\spec_post.prf:
.qmake.stash:
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\exclusive_builds.prf:
..\..\QT\5.10.0\msvc2015_64\mkspecs\common\msvc-version.conf:
..\..\QT\5.10.0\msvc2015_64\mkspecs\features\toolchain.prf:
......
此差异已折叠。
此差异已折叠。
#include "colorform.h"
#include "ui_colorform.h"
ColorForm::ColorForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::ColorForm)
{
ui->setupUi(this);
}
ColorForm::~ColorForm()
{
delete ui;
}
#ifndef COLORFORM_H
#define COLORFORM_H
#include <QWidget>
namespace Ui {
class ColorForm;
}
class ColorForm : public QWidget
{
Q_OBJECT
public:
explicit ColorForm(QWidget *parent = 0);
~ColorForm();
private:
Ui::ColorForm *ui;
};
#endif // COLORFORM_H
<ui version="4.0">
<author/>
<comment/>
<exportmacro/>
<class>ColorForm</class>
<widget class="QWidget" name="ColorForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
</widget>
<pixmapfunction/>
<connections/>
</ui>
文件已添加
无法预览此类型文件
/****************************************************************************
** Meta object code from reading C++ file 'colorform.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include "../colorform.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'colorform.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.10.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_ColorForm_t {
QByteArrayData data[1];
char stringdata0[10];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_ColorForm_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_ColorForm_t qt_meta_stringdata_ColorForm = {
{
QT_MOC_LITERAL(0, 0, 9) // "ColorForm"
},
"ColorForm"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_ColorForm[] = {
// content:
7, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void ColorForm::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
const QMetaObject ColorForm::staticMetaObject = {
{ &QWidget::staticMetaObject, qt_meta_stringdata_ColorForm.data,
qt_meta_data_ColorForm, qt_static_metacall, nullptr, nullptr}
};
const QMetaObject *ColorForm::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *ColorForm::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_ColorForm.stringdata0))
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
int ColorForm::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWidget::qt_metacall(_c, _id, _a);
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
此差异已折叠。
文件已添加
<RCC>
<qresource prefix="/">
<file>lib/guanbi.png</file>
<file>lib/zuidahua.png</file>
<file>lib/zuixiao.png</file>
<file>lib/icon.png</file>
<file>lib/icon_2.png</file>
<file>lib/xuanxiang.png</file>
</qresource>
</RCC>
#include "mainwindow.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton)
{
m_point = event->pos();
//isok = true;
// qDebug()<<"确定";
}
//&& event->pos().y() < 22 && event->pos().y() > 0
}
void MainWindow::mouseMoveEvent(QMouseEvent *event)
{
// if(isok = true)
{
move(event->pos() - m_point + pos());
}
}
void MainWindow::mouseReleaseEvent(QMouseEvent *event)
{
//isok = false;
Q_UNUSED(event);
}
#ifndef MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include<QMouseEvent>
#include<QPoint>
namespace Ui {
class MainWindow;
}
......@@ -10,10 +11,15 @@ class MainWindow;
class MainWindow : public QMainWindow
{
Q_OBJECT
QPoint m_point; //鼠标坐标
bool isok = false; //判断是否标签栏
public:
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
private:
Ui::MainWindow *ui;
......
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>967</width>
<height>559</height>
</rect>
</property>
<property name="windowTitle" >
<property name="font">
<font>
<pointsize>9</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QMenuBar" name="menuBar" />
<widget class="QToolBar" name="mainToolBar" />
<widget class="QWidget" name="centralWidget" />
<widget class="QStatusBar" name="statusBar" />
<property name="windowIcon">
<iconset resource="lib.qrc">
<normaloff>:/lib/icon_2.png</normaloff>:/lib/icon_2.png</iconset>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QWidget" name="centralWidget">
<property name="styleSheet">
<string notr="true">#centralWidget
{
background-color: rgb(79, 79, 79);
}</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="minimumSize">
<size>
<width>500</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>166666</width>
<height>1</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(36, 36, 36);</string>
</property>
<property name="text">
<string>1564564564564</string>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>517</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>4</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/icon_2.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
<underline>false</underline>
<kerning>true</kerning>
</font>
</property>
<property name="toolTipDuration">
<number>-1</number>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(226, 226, 226);</string>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="text">
<string>Qt皮肤生成器(作者:花狗 QQ:2506897252)</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="margin">
<number>1</number>
</property>
<property name="indent">
<number>-1</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/xuanxiang.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/zuixiao.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>7</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/zuidahua.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/guanbi.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
<layoutdefault spacing="6" margin="11"/>
<resources>
<include location="lib.qrc"/>
</resources>
<connections>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>showMinimized()</slot>
<hints>
<hint type="sourcelabel">
<x>855</x>
<y>14</y>
</hint>
<hint type="destinationlabel">
<x>483</x>
<y>279</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_2</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>showMaximized()</slot>
<hints>
<hint type="sourcelabel">
<x>897</x>
<y>14</y>
</hint>
<hint type="destinationlabel">
<x>483</x>
<y>279</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_3</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>939</x>
<y>14</y>
</hint>
<hint type="destinationlabel">
<x>483</x>
<y>279</y>
</hint>
</hints>
</connection>
</connections>
</ui>
/********************************************************************************
** Form generated from reading UI file 'colorform.ui'
**
** Created by: Qt User Interface Compiler version 5.10.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_COLORFORM_H
#define UI_COLORFORM_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_ColorForm
{
public:
void setupUi(QWidget *ColorForm)
{
if (ColorForm->objectName().isEmpty())
ColorForm->setObjectName(QStringLiteral("ColorForm"));
ColorForm->resize(400, 300);
retranslateUi(ColorForm);
QMetaObject::connectSlotsByName(ColorForm);
} // setupUi
void retranslateUi(QWidget *ColorForm)
{
ColorForm->setWindowTitle(QApplication::translate("ColorForm", "Form", nullptr));
} // retranslateUi
};
namespace Ui {
class ColorForm: public Ui_ColorForm {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_COLORFORM_H
......@@ -13,11 +13,13 @@
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QToolBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
......@@ -25,30 +27,162 @@ QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QMenuBar *menuBar;
QToolBar *mainToolBar;
QWidget *centralWidget;
QStatusBar *statusBar;
QGridLayout *gridLayout;
QLabel *label_2;
QSpacerItem *verticalSpacer;
QHBoxLayout *horizontalLayout;
QSpacerItem *horizontalSpacer_3;
QLabel *label_3;
QSpacerItem *horizontalSpacer_6;
QLabel *label;
QSpacerItem *horizontalSpacer_7;
QPushButton *pushButton_4;
QSpacerItem *horizontalSpacer_8;
QPushButton *pushButton;
QSpacerItem *horizontalSpacer_5;
QPushButton *pushButton_2;
QSpacerItem *horizontalSpacer_4;
QPushButton *pushButton_3;
QSpacerItem *horizontalSpacer_2;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QStringLiteral("MainWindow"));
MainWindow->resize(400, 300);
menuBar = new QMenuBar(MainWindow);
menuBar->setObjectName(QStringLiteral("menuBar"));
MainWindow->setMenuBar(menuBar);
mainToolBar = new QToolBar(MainWindow);
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
MainWindow->addToolBar(mainToolBar);
MainWindow->resize(967, 559);
QFont font;
font.setPointSize(9);
font.setBold(true);
font.setItalic(false);
font.setWeight(75);
MainWindow->setFont(font);
QIcon icon;
icon.addFile(QStringLiteral(":/lib/icon_2.png"), QSize(), QIcon::Normal, QIcon::Off);
MainWindow->setWindowIcon(icon);
MainWindow->setStyleSheet(QStringLiteral(""));
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
centralWidget->setStyleSheet(QLatin1String("#centralWidget\n"
"{\n"
"background-color: rgb(79, 79, 79);\n"
"}"));
gridLayout = new QGridLayout(centralWidget);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
gridLayout->setContentsMargins(0, 4, 0, 0);
label_2 = new QLabel(centralWidget);
label_2->setObjectName(QStringLiteral("label_2"));
label_2->setMinimumSize(QSize(500, 0));
label_2->setMaximumSize(QSize(166666, 1));
label_2->setStyleSheet(QStringLiteral("background-color: rgb(36, 36, 36);"));
gridLayout->addWidget(label_2, 1, 0, 1, 1);
verticalSpacer = new QSpacerItem(20, 517, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(verticalSpacer, 2, 0, 1, 1);
horizontalLayout = new QHBoxLayout();
horizontalLayout->setSpacing(6);
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, -1, 0);
horizontalSpacer_3 = new QSpacerItem(4, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_3);
label_3 = new QLabel(centralWidget);
label_3->setObjectName(QStringLiteral("label_3"));
label_3->setMinimumSize(QSize(20, 20));
label_3->setMaximumSize(QSize(20, 20));
label_3->setStyleSheet(QStringLiteral("border-image: url(:/lib/icon_2.png);"));
horizontalLayout->addWidget(label_3);
horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_6);
label = new QLabel(centralWidget);
label->setObjectName(QStringLiteral("label"));
QFont font1;
font1.setBold(true);
font1.setItalic(false);
font1.setUnderline(false);
font1.setWeight(75);
font1.setKerning(true);
label->setFont(font1);
label->setToolTipDuration(-1);
label->setStyleSheet(QStringLiteral("color: rgb(226, 226, 226);"));
label->setLineWidth(1);
label->setAlignment(Qt::AlignCenter);
label->setMargin(1);
label->setIndent(-1);
horizontalLayout->addWidget(label);
horizontalSpacer_7 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_7);
pushButton_4 = new QPushButton(centralWidget);
pushButton_4->setObjectName(QStringLiteral("pushButton_4"));
pushButton_4->setMinimumSize(QSize(20, 20));
pushButton_4->setMaximumSize(QSize(20, 20));
pushButton_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/xuanxiang.png);"));
horizontalLayout->addWidget(pushButton_4);
horizontalSpacer_8 = new QSpacerItem(10, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_8);
pushButton = new QPushButton(centralWidget);
pushButton->setObjectName(QStringLiteral("pushButton"));
pushButton->setMinimumSize(QSize(20, 20));
pushButton->setMaximumSize(QSize(20, 20));
pushButton->setStyleSheet(QStringLiteral("border-image: url(:/lib/zuixiao.png);"));
horizontalLayout->addWidget(pushButton);
horizontalSpacer_5 = new QSpacerItem(7, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_5);
pushButton_2 = new QPushButton(centralWidget);
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
pushButton_2->setMinimumSize(QSize(20, 20));
pushButton_2->setMaximumSize(QSize(20, 20));
pushButton_2->setStyleSheet(QStringLiteral("border-image: url(:/lib/zuidahua.png);"));
horizontalLayout->addWidget(pushButton_2);
horizontalSpacer_4 = new QSpacerItem(10, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_4);
pushButton_3 = new QPushButton(centralWidget);
pushButton_3->setObjectName(QStringLiteral("pushButton_3"));
pushButton_3->setMinimumSize(QSize(20, 20));
pushButton_3->setMaximumSize(QSize(20, 20));
pushButton_3->setStyleSheet(QStringLiteral("border-image: url(:/lib/guanbi.png);"));
horizontalLayout->addWidget(pushButton_3);
horizontalSpacer_2 = new QSpacerItem(10, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer_2);
gridLayout->addLayout(horizontalLayout, 0, 0, 1, 1);
MainWindow->setCentralWidget(centralWidget);
statusBar = new QStatusBar(MainWindow);
statusBar->setObjectName(QStringLiteral("statusBar"));
MainWindow->setStatusBar(statusBar);
retranslateUi(MainWindow);
QObject::connect(pushButton, SIGNAL(clicked()), MainWindow, SLOT(showMinimized()));
QObject::connect(pushButton_2, SIGNAL(clicked()), MainWindow, SLOT(showMaximized()));
QObject::connect(pushButton_3, SIGNAL(clicked()), MainWindow, SLOT(close()));
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
......@@ -56,6 +190,13 @@ public:
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", nullptr));
label_2->setText(QApplication::translate("MainWindow", "1564564564564", nullptr));
label_3->setText(QString());
label->setText(QApplication::translate("MainWindow", "Qt\347\232\256\350\202\244\347\224\237\346\210\220\345\231\250\357\274\210\344\275\234\350\200\205\357\274\232\350\212\261\347\213\227 QQ\357\274\2322506897252\357\274\211", nullptr));
pushButton_4->setText(QString());
pushButton->setText(QString());
pushButton_2->setText(QString());
pushButton_3->setText(QString());
} // retranslateUi
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册