Results 1 to 3 of 3

Thread: How to remove the scale tick label at 1st tick and last tick?

  1. #1
    Join Date
    Sep 2011
    Posts
    30
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to remove the scale tick label at 1st tick and last tick?

    I need to hide/remove the tick labels at 1st tick and last tick, please give me your suggestion. Thanks so much.

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

    Default Re: How to remove the scale tick label at 1st tick and last tick?

    Overload and reimplement QwtScaleDraw::label(): return QString::null where you don't want to have a label.

    Uwe

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

    josentop (29th September 2011)

  4. #3
    Join Date
    Sep 2011
    Posts
    30
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to remove the scale tick label at 1st tick and last tick?

    thanks for your suggestion!!!

Similar Threads

  1. Replies: 5
    Last Post: 21st July 2010, 15:49
  2. Axis Tick Labels Overlap
    By amoswood in forum Qwt
    Replies: 3
    Last Post: 8th June 2010, 15:52
  3. y-axis tick labels trimmed
    By gib in forum Qwt
    Replies: 2
    Last Post: 2nd April 2010, 05:19
  4. qslider fixed to tick marks
    By holst in forum Qt Programming
    Replies: 4
    Last Post: 24th July 2009, 12:18
  5. Tick Labels for Slider
    By jcraig in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 17:21

Tags for this Thread

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.