#ifndef _WidgetDial_H_
#define _WidgetDial_H_
#include <QtGui>
#include <boost/noncopyable.hpp>
class WidgetDial : public QWidget //, public boost::noncopyable
{
Q_OBJECT
public:
WidgetDial ( QWidget *_parent );
virtual ~WidgetDial ( );
protected:
virtual void paintEvent ( QPaintEvent * );
};
#endif
---
#include "WidgetDial.h"
WidgetDial :: WidgetDial ( QWidget *_parent )
: QWidget( _parent )
{
}
WidgetDial :: ~WidgetDial ( )
{
}
//
// PROTECTED
//
void WidgetDial::paintEvent ( QPaintEvent *_event )
{
}
gui/WidgetDial.cpp.o: In function `WidgetDial':
gui/WidgetDial.cpp:8: undefined reference to `vtable for WidgetDial'
gui/WidgetDial.cpp:8: undefined reference to `vtable for WidgetDial'
gui/WidgetDial.cpp.o: In function `~WidgetDial':
gui/WidgetDial.cpp:14: undefined reference to `vtable for WidgetDial'
gui/WidgetDial.cpp:14: undefined reference to `vtable for WidgetDial'
Почему так?