diff --git a/QtCustomStyleEx/Example.cpp b/QtCustomStyleEx/Example.cpp new file mode 100644 index 0000000..c75ddca --- /dev/null +++ b/QtCustomStyleEx/Example.cpp @@ -0,0 +1,11 @@ +#include "Example.h" + +Example::Example(QWidget *parent) + : QWidget(parent) +{ +} + +Example::~Example() +{ + +} diff --git a/QtCustomStyleEx/Example.h b/QtCustomStyleEx/Example.h new file mode 100644 index 0000000..13bee3d --- /dev/null +++ b/QtCustomStyleEx/Example.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2019 ~ 2019 touwoyimuli. All rights reserved. + * + * Author: touwoyimuli + * + * github: https://github.com/touwoyimuli + * blogs: https://touwoyimuli.github.io/ + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#ifndef EXAMPLE_H +#define EXAMPLE_H + +#include + +class Example : public QWidget +{ + Q_OBJECT + +public: + Example(QWidget *parent = 0); + ~Example(); +}; + +#endif // EXAMPLE_H diff --git a/QtCustomStyleEx/QtCustomStyleEx.pro b/QtCustomStyleEx/QtCustomStyleEx.pro new file mode 100644 index 0000000..c344667 --- /dev/null +++ b/QtCustomStyleEx/QtCustomStyleEx.pro @@ -0,0 +1,37 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2019-11-07T16:47:52 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = QtCustomStyleEx +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 \ + Example.cpp + +HEADERS += \ + Example.h + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/QtCustomStyleEx/images/icon.icns b/QtCustomStyleEx/images/icon.icns new file mode 100644 index 0000000..9d5eb31 Binary files /dev/null and b/QtCustomStyleEx/images/icon.icns differ diff --git a/QtCustomStyleEx/images/icon.ico b/QtCustomStyleEx/images/icon.ico new file mode 100644 index 0000000..7213a9d Binary files /dev/null and b/QtCustomStyleEx/images/icon.ico differ diff --git a/QtCustomStyleEx/main.cpp b/QtCustomStyleEx/main.cpp new file mode 100644 index 0000000..6cf32ca --- /dev/null +++ b/QtCustomStyleEx/main.cpp @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 ~ 2019 touwoyimuli. All rights reserved. + * + * Author: touwoyimuli + * + * github: https://github.com/touwoyimuli + * blogs: https://touwoyimuli.github.io/ + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include "Example.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + Example w; + w.show(); + + return a.exec(); +}