tonnot
26th October 2010, 20:41
this is my pro file, in trying to test a widget placed at a knowed path.
(I'm trying to test the analogwidgets from www.3electrons.com )
TEMPLATE = app
INCLUDEPATH += ../AnalogWidgets/analogwidgets/analogwidgets \
../AnalogWidgets/analogwidgets/code
HEADERS += ../AnalogWidgets/analogwidgets/analogwidgets/led.h \
form.h
SOURCES += ../AnalogWidgets/analogwidgets/code/led.cpp \
form.cpp \
main.cpp
FORMS += \
form.ui
led.h has :
#include "widgetwithbackground.h" and this file is placed at the same location as led.h
ok, when compile I have the errors : one of them (all are similar ) are :
... line 27 : undefined reference to `WidgetWithBackground::WidgetWithBackground(QWidge t*)'
This is the 27 and more lines of led.h:
Led::Led(QWidget * parent):WidgetWithBackground(parent)
{
m_checked = true;
m_color = Qt::red;
resize(330,330);
}
Any help ?
(I'm trying to test the analogwidgets from www.3electrons.com )
TEMPLATE = app
INCLUDEPATH += ../AnalogWidgets/analogwidgets/analogwidgets \
../AnalogWidgets/analogwidgets/code
HEADERS += ../AnalogWidgets/analogwidgets/analogwidgets/led.h \
form.h
SOURCES += ../AnalogWidgets/analogwidgets/code/led.cpp \
form.cpp \
main.cpp
FORMS += \
form.ui
led.h has :
#include "widgetwithbackground.h" and this file is placed at the same location as led.h
ok, when compile I have the errors : one of them (all are similar ) are :
... line 27 : undefined reference to `WidgetWithBackground::WidgetWithBackground(QWidge t*)'
This is the 27 and more lines of led.h:
Led::Led(QWidget * parent):WidgetWithBackground(parent)
{
m_checked = true;
m_color = Qt::red;
resize(330,330);
}
Any help ?