PDA

View Full Version : How to use KDChart?(simple example)



programmer251
21st April 2012, 20:09
Hello to everyone...
This is my first thread on this forum, sorry if I'm opening it in not correct direction.

I have some question about KDChart:

I've installed KDChart tools for Qt, but I don't even know how to use it properly. Can anyone show me how to use it? just simple example

Platform: Linux(Fedora 16)
Using: QtDesigner for visually creating of MainWindow and e.t.c, gedit for coding, xterm for compiling whole these projects.

here is what I have for now:
in .pro file I've decleared:
INCLUDEPATH += "/home/programmer/Documents/kdc/include/KDChart/"

than in my .h file I've included <KDChartChart.h> and declared:
using namespace KDChart;
but, when I'm trying to create object like this:

Chart *chart1 = new Chart();

in the xterm appears error:

undefined reference to 'KDChart::Chart::Chart(QWidget*)'
collect2: ld returned 1 exit status
make: *** [qet] Error 1


How to fix it? and please if you have some examples in this case, show it.

Thanks.

Best regards, programmer251.