2019-12-01 00:12:23 +08:00
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Project created by QtCreator 2019-11-07T16:47:52
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
2019-12-08 12:16:00 +08:00
|
|
|
|
#xxxPrivate 继承 Q-xxxx-Private的话,是需要的添加 core-private(有一些核心方法? 类 可能不开放)
|
|
|
|
|
QT += core gui core-private
|
2019-12-01 00:12:23 +08:00
|
|
|
|
|
2019-12-08 12:16:00 +08:00
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets widgets-private # 若是需要继承 widgets相关,需要添加 widgets-private
|
2019-12-01 00:12:23 +08:00
|
|
|
|
|
2019-12-04 00:21:42 +08:00
|
|
|
|
TARGET = custom-style
|
2019-12-01 00:12:23 +08:00
|
|
|
|
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 \
|
2019-12-03 08:47:10 +08:00
|
|
|
|
Example.cpp \
|
2019-12-06 00:04:18 +08:00
|
|
|
|
ExMyStyle.cpp \
|
|
|
|
|
MyWidget/ExSwitchButton.cpp
|
2019-12-01 00:12:23 +08:00
|
|
|
|
|
|
|
|
|
HEADERS += \
|
2019-12-03 08:47:10 +08:00
|
|
|
|
Example.h \
|
2019-12-04 00:21:42 +08:00
|
|
|
|
ExMyStyle.h \
|
2019-12-06 00:04:18 +08:00
|
|
|
|
ExMyGlobal.h \
|
|
|
|
|
MyWidget/ExSwitchButton.h \
|
|
|
|
|
MyWidget/ExSwitchButton_p.h
|
2019-12-03 08:47:10 +08:00
|
|
|
|
|
2019-12-01 00:12:23 +08:00
|
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|