fix bug:动态库形式找不到信号,改为子工程
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user