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 <QObject>
class Q_DECL_EXPORT SwitchButton : public QWidget
class SwitchButton : public QWidget
{
Q_OBJECT
public:

9
switchbutton.pri

@ -1,9 +1,8 @@
INCLUDEPATH += $$PWD/
INCLUDEPATH += $$PWD/src
#SOURCES += \
# $$PWD/SwitchButton.cpp
SOURCES += \
$$PWD/src/SwitchButton.cpp
HEADERS += \
$$PWD/SwitchButton.h
$$PWD/src/SwitchButton.h
LIBS += -L. SwitchButton

Loading…
Cancel
Save