Results 1 to 4 of 4

Thread: simple % curve diagram.

  1. #1
    Join Date
    Nov 2008
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default simple % curve diagram.

    Hi

    I am new to Qwt, but have a relatively simple task, and hoped for a simple solution.

    I have 3 arrays with pairs of time and %. I need to draw a diagram showing the 3 curves, with time on the x-axis and a simple y-axis (all programmed in C++)

    Do I need to start from the bottom, or is there some higher level widget that can help me do the task easy.

    thanks for any hints that can help me solve my problem.

    rgds
    Jan

  2. #2
    Join Date
    Mar 2009
    Posts
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: simple % curve diagram.

    Quote Originally Posted by janEUcitzen View Post
    Hi

    I am new to Qwt, but have a relatively simple task, and hoped for a simple solution.

    I have 3 arrays with pairs of time and %. I need to draw a diagram showing the 3 curves, with time on the x-axis and a simple y-axis (all programmed in C++)

    Do I need to start from the bottom, or is there some higher level widget that can help me do the task easy.

    thanks for any hints that can help me solve my problem.

    rgds
    Jan
    Hi Jan,
    Did you look at the examples ?
    You can find something there.


    Hüseyin

  3. #3
    Join Date
    Nov 2008
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: simple % curve diagram.

    thanks.

    I tried to look at the examples, but got confused, merely by the complexity of all the options possible.

    What I really need was a simple example...I will try to look again.

    jan

  4. #4
    Join Date
    Apr 2008
    Posts
    32
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: simple % curve diagram.

    Quote Originally Posted by janEUcitzen View Post
    thanks.

    I tried to look at the examples, but got confused, merely by the complexity of all the options possible.

    What I really need was a simple example...I will try to look again.

    jan
    Well as far as I see: you can place a plot (QwtPlot) widget on a form. Get three pointers to QwtPlotCurves (and allocate memory for them) set data to curves from your arrays and attach these curves to plot. I suggest look into QWT's user guide - classes QwtPlot (it's reference starts with very simple example, which can work for you) and QwtPlotCurve.

Similar Threads

  1. A simple example of a tree model
    By YaK in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2009, 18:15
  2. Replies: 4
    Last Post: 9th January 2009, 12:57
  3. Plotting part of a curve
    By viridis in forum Qwt
    Replies: 6
    Last Post: 21st July 2008, 09:12
  4. Replies: 13
    Last Post: 12th June 2008, 14:23
  5. Flow Diagram
    By fruzzo in forum Newbie
    Replies: 5
    Last Post: 2nd December 2007, 19:45

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.