Results 1 to 4 of 4

Thread: KPlotWidget how to?

  1. #1
    Join Date
    Dec 2008
    Location
    Upper Ferntree Gully, Victoria, Australia
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default KPlotWidget how to?

    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.

  2. #2
    Join Date
    Dec 2008
    Location
    Upper Ferntree Gully, Victoria, Australia
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: KPlotWidget how to?

    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.

    Qt Code:
    1. /home/pnunn/src/qt4/TestGraph/ui_mainwindow.h:43: undefined reference to `KPlotWidget::KPlotWidget(QWidget*)'
    To copy to clipboard, switch view to plain text mode 

    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??

  3. #3
    Join Date
    May 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: KPlotWidget how to?

    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.
    Last edited by ffchaves; 28th May 2009 at 16:43. Reason: Forgot another tip.

  4. #4
    Join Date
    Nov 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Wink Re: KPlotWidget how to?

    just add

    LIBS += -lkdeui

    in project file

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.