Yes, after removing from my .h file, I can get my application compiled and built.
However, when I ran it, I confronted another issue "Seg fault on program start", as posted here:
http://www.osgeo.org/pipermail/qgis-...ch/006230.html
Well, may I ask:
1)
What is the purpose of
Q_OBJECT
Q_OBJECT
To copy to clipboard, switch view to plain text mode
after my class definition? For example, my class looks like:
{
Q_OBJECT
private:
....
};
class CDataPlot : public QwtPlot
{
Q_OBJECT
private:
....
};
To copy to clipboard, switch view to plain text mode
What is used for?
2)
Without Q_OBJECT, I obtained this warning and the program won't start.
Warning: QObject::connect: Connecting from COMPAT signal (QAction::activated())
With Q_OBJECT, I obtained the following error compilation message:
error LNK2001: unresolved external symbol "public: static struct QMetaObject const QwtPlot::staticMetaObject" (?staticMetaObject@QwtPlot@@2UQMetaObject@@B)
3) My Environments:
WindowsXP+Visual Studio 2008+qt-vs-addin-1.1.5.exe+qwt-5.2.1
4)
In addition, under Ubuntu 10.04, the same program runs perfectly.
So, can anybody help please?
Best Regards
JIA
Bookmarks