Results 1 to 3 of 3

Thread: Qwt major and minor grid

  1. #1
    Join Date
    Feb 2012
    Posts
    2
    Platforms
    MacOS X Unix/X11

    Default Qwt major and minor grid

    Hi,

    I was wondering if I could get help on plotting major and minor grids on a QwtPlot.

    It seems like the minor grids only show when the major grid is enabled, but not without it. Is this how it is designed, or am I missing something?

    I have grid->enableX(status); and grid->enableXMin(status); in separate functions that are linked to checkboxes that control the status of the grids on a plot.

    Any advice is much appreciated.

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

    Default Re: Qwt major and minor grid

    Quote Originally Posted by endbegin View Post
    It seems like the minor grids only show when the major grid is enabled, but not without it.
    Qwt is open source - so it is easy to check the code ( QwtPlotGrid::drawLines ) that it is like this.
    But what you can do is to assign QPen( Qt::NoPen ) as major grid pen.

    Uwe

  3. #3
    Join Date
    Feb 2012
    Posts
    2
    Platforms
    MacOS X Unix/X11

    Default Re: Qwt major and minor grid

    OK, thank you.

Similar Threads

  1. draw minor arc
    By sujan.dasmahapatra in forum General Programming
    Replies: 2
    Last Post: 11th October 2011, 00:08
  2. Grid Minor Major and gap before the data
    By huseyinkozan in forum Qwt
    Replies: 3
    Last Post: 3rd August 2010, 12:13
  3. Replies: 5
    Last Post: 21st July 2010, 15:49
  4. Minor bug in QMdiArea/QSubMdiWindow: Ctrl+Shift+Tab
    By epsilon in forum Qt Programming
    Replies: 0
    Last Post: 3rd March 2010, 06:23
  5. QComboBox minor problem
    By lalesculiviu in forum Qt Programming
    Replies: 2
    Last Post: 12th December 2009, 16:50

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.