Hello. I'm using Visual Studio 2010 with vs-addin-1.2.2. I suppose, that addin should generate moc-files automatically when finds Q_OBJECT macro. But I added simple class and got linker errors. Moc-files were generated properly with other classes early, but not now. What's wrong? Is there any way to force generating?
QwtFFT.h
#pragma once
#include "qwt_plot.h"
class QwtFFT :
{
Q_OBJECT
public:
~QwtFFT(void);
};
#pragma once
#include "qwt_plot.h"
class QwtFFT :
public QwtPlot
{
Q_OBJECT
public:
QwtFFT(QWidget *);
~QwtFFT(void);
};
To copy to clipboard, switch view to plain text mode
QwtFFT.c
#include "QwtFFT.h"
{
}
QwtFFT::~QwtFFT(void)
{
}
#include "QwtFFT.h"
QwtFFT::QwtFFT(QWidget *parent) : QwtPlot(parent)
{
}
QwtFFT::~QwtFFT(void)
{
}
To copy to clipboard, switch view to plain text mode
QWT_DLL defined. Thanks
Bookmarks