fix bug:动态库形式找不到信号,改为子工程

This commit is contained in:
2023-05-26 22:16:51 +08:00
parent f58f352c77
commit 0460aa591f
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#include <memory> #include <memory>
#include <QObject> #include <QObject>
class Q_DECL_EXPORT SwitchButton : public QWidget class SwitchButton : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
+4 -5
View File
@@ -1,9 +1,8 @@
INCLUDEPATH += $$PWD/ INCLUDEPATH += $$PWD/src
#SOURCES += \ SOURCES += \
# $$PWD/SwitchButton.cpp $$PWD/src/SwitchButton.cpp
HEADERS += \ HEADERS += \
$$PWD/SwitchButton.h $$PWD/src/SwitchButton.h
LIBS += -L. SwitchButton