Browse Source

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

master
tianzhendong 2 years ago
parent
commit
0460aa591f
  1. 2
      src/SwitchButton.h
  2. 9
      switchbutton.pri

2
src/SwitchButton.h

@ -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:

9
switchbutton.pri

@ -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

Loading…
Cancel
Save