Results 1 to 5 of 5

Thread: Cant't draw custom grid

Threaded View

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

    Default Re: Cant't draw custom grid

    However, this doesn't solve my problem since I want aoutoscaling but with custom labels.
    Setting custom ticks is the opposite of autoscaling - so this makes no sense.

    But you can configure the autoscaler, that is part of the QwtScaleEngine for your axis. You also have QwtPlot::setAxisMaxMajor/setAxisMaxMinor to limit the number of intervals ( = ticks ) calculated by the autoscaler.
    I assume I've missed something in the basic functionality of the QwtPlotGrid since it won't display my custom grid without the same fixed, custom scale...
    Yes you do: the grid is responsible for the horizontal/vertical lines according to the scale ticks on the plot canvas. But it has nothing to do with the scales itsself.
    EDIT: Hey! And while we're at it, could someone tell me how to change the color of the font in the scales?
    Depends on which fonts you mean:

    a) Each widget has a setPalette() method - so each QwtScaleWidget has a palette as well.
    b) All labels used in a plot are QwtText objects, that can have their own font/color.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    Tottish (1st May 2010)

Similar Threads

  1. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  2. Replies: 5
    Last Post: 21st January 2010, 15:55
  3. Replies: 1
    Last Post: 10th December 2009, 21:31
  4. To draw a custom scale
    By Indalo in forum Qwt
    Replies: 1
    Last Post: 30th November 2009, 13:24
  5. How do I layout in a Grid?
    By DPinLV in forum Qt Tools
    Replies: 7
    Last Post: 10th August 2006, 01:37

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.