PDA

View Full Version : KPlotWidget how to?



pnunn
4th March 2009, 11:01
Hi folks,

I'm trying to learn how to use the KPlotWidget in qtCreator 1.

I've put one on a form, but when I try and compile the project (without doing anything else) I'm getting errors about the constructor not being available.

I've added #include <kplotwidget.h> but nothing has changed.

I want to plot some data against time, is this the best widget to use for a task like this?

Ta

Peter.

pnunn
7th March 2009, 12:27
Seeing as how no one has seen fit to reply yet... I'll give some more information.

I have made a new project with nothing on the form but a KPlotWidget and I'm getting the same errors as the other project.




/home/pnunn/src/qt4/TestGraph/ui_mainwindow.h:43: undefined reference to `KPlotWidget::KPlotWidget(QWidget*)'


I have checked ui_mainwindow.h and it has the correct header file being called, but nothing seems to want to work.

Help please?? Anyone??

ffchaves
28th May 2009, 16:39
Doesn't hurt to ask, but have you installed package libkdeedu-dev already?

If so, I'm not sure but I think you must link libkdeui to your project.

sanjuchopracool
15th January 2012, 13:31
just add

LIBS += -lkdeui

in project file