도와주세요!!
qt-4.3.0입니다.
VDialpadKeyboard.h
class VDialpadKeyboard : public QWidget
{
Q_OBJECT
public:
VDialpadKeyboard(QWidget * parent = 0);
~VDialpadKeyboard();
...
};
VDialpadKeyboard.cpp
VDialpadKeyboard::VDialpadKeyboard( QWidget * parent ) : QWidget( parent)
{
setWindowFlags(Qt::Widget | Qt::FramelessWindowHint);
move(80, 480-194);
setFixedSize(310, 194);
setUp( );
}
한후에
VFullScreen.h
#include "VDialpadKeyboard.h"
class VFullScreen : public QWidget {
Q_OBJECT
public:
class VDialpadKeyboard* dialpad;
};
VFullScreen.cpp
dialpad = new VDialpadKeyboard; // ??
하니까 다음과 같이 에러가
../gui/libgui.a(VDialpadKeyboard.o)(.text+0x244): In function `VDialpadKeyboard::~VDialpadKeyboard()':
/home/jgyang/trunk_rev1807_20080826/VIABLE/sbn_vpad/gui/VDialpadKeyboard.cpp:22: undefined reference to `vtable for VDialpadKeyboard'
../gui/libgui.a(VDialpadKeyboard.o)(.text+0x248):/home/jgyang/trunk_rev1807_20080826/VIABLE/sbn_vpad/gui/VDialpadKeyboard.cpp:22: more undefined references to `vtable for VDialpadKeyboard' follow
collect2: ld returned 1 exit status
make[3]: *** [../bin/vpad] Error 1
dialpad = new VDialpadKeyboard; 를 주석 처리 하면 에러가 없습니다.
요렇게 객체 생성 하는것 아니가용?