fix bug:动态库形式找不到信号,改为子工程
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@
|
||||
#include <memory>
|
||||
#include <QObject>
|
||||
|
||||
class Q_DECL_EXPORT SwitchButton : public QWidget
|
||||
class SwitchButton : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
+4
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user