Results 1 to 2 of 2

Thread: looking for examples using QwtScaleWidget without QwtPlot

  1. #1
    Join Date
    Jul 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default looking for examples using QwtScaleWidget without QwtPlot

    I'm looking for any examples of using QwtScaleWidget totally outside of using QwtPlot. I'm trying to get a better handle on how to combine things like QwtScaleDraw, QwtScaleEngine, etc. to accomplish my scale. I've looked at the code inside QwtPlot regarding scales, but seeing an example outside of QwtPlot will help make their use even more clear.

    I have an application that will have one plotting area with three different scales along the left side and one on the bottom. I have various data that progress over time (bottom axis) but some of these data are of different forms so I want three sub-plots vertically stacked. I can't easily have three stacked QwtPlots because I need to draw the plot data on the fly in the paint event routine for all three sub-plots at once. As my data engine progresses through time it will sometimes draw into one of the three sub-plots and sometimes into another -- so three separate paint events for each sub-plot won't work well (or at least efficiently).

    Thanks for any pointers to any example code!

    John

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: looking for examples using QwtScaleWidget without QwtPlot

    Quote Originally Posted by jcbikeski View Post
    I have an application that will have one plotting area with three different scales along the left side and one on the bottom.
    In the patches section on the Qwt project page you find a patch for plots with more than 4 scales. Maybe this helps.

    Uwe

Similar Threads

  1. Qwt examples
    By nitriles in forum Qwt
    Replies: 7
    Last Post: 6th August 2011, 05:07
  2. QwtPolar or QwtPlot examples do not start
    By giusepped in forum Qwt
    Replies: 2
    Last Post: 15th March 2010, 06:09
  3. Replies: 6
    Last Post: 14th May 2009, 13:02
  4. Replies: 1
    Last Post: 26th October 2008, 19:39
  5. qwtscalewidget: setting scale to the widget..
    By halberdier83 in forum Qwt
    Replies: 3
    Last Post: 4th December 2007, 09:08

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.