当前位置: 代码迷 >> QT开发 >> qwt的程序错误
  详细解决方案

qwt的程序错误

热度:51   发布时间:2016-04-25 04:04:51.0
qwt的程序异常
本帖最后由 fsx92 于 2013-03-01 10:06:42 编辑
我在使用qwt时,如果我直接用QwtPlot实例化对象,可以正常显示。但是当我尝试新建一个类继承自QwtPlot时,程序就报异常退出了。有这样一句编译输出:This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
我新建的类定义如下:
class ProfilePlot : public QwtPlot
{
    Q_OBJECT
public:
    ProfilePlot(QWidget * = 0) {}
    ~ProfilePlot() {}
};

.pro的相关配置如是:

CONFIG += qwt

INCLUDEPATH += E:\myQt\Example\qwt\src
LIBS += -L"E:\myQt\Example\qwt\lib" -lqwtd

------解决方案--------------------
收分
  相关解决方案