Results 1 to 2 of 2

Thread: QwtSlider turn off tick draw

  1. #1
    Join Date
    Mar 2012
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QwtSlider turn off tick draw

    In 6.0 you could disable the the drawing of ticks on a slider as follows;

    scaleDraw()->enableComponent(QwtAbstractScaleDraw::Backbone, false);

    How do you do this now in 6.1?

  2. #2
    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: QwtSlider turn off tick draw

    The same way ( using a const_cast ) - or using setScaleDraw(), what is intended by the API.

    Uwe

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

    snowbound (13th March 2014)

Similar Threads

  1. Customize tick labels in a QwtSlider
    By RomanRdgz in forum Qwt
    Replies: 16
    Last Post: 10th September 2012, 13:02
  2. Replies: 4
    Last Post: 4th September 2012, 19:28
  3. Replies: 2
    Last Post: 29th September 2011, 13:10
  4. QwtSlider resize
    By vratojr in forum Qwt
    Replies: 1
    Last Post: 13th July 2011, 12:28
  5. Align QwtSlider and QwtPlot
    By justoit in forum Qwt
    Replies: 4
    Last Post: 4th May 2011, 11:41

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.