Results 1 to 2 of 2

Thread: Qslider Ticks not displayed

  1. #1
    Join Date
    Sep 2009
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qslider Ticks not displayed

    Hi,

    I have an horizontal sliderwith a personilized stylesheet
    but the Ticks are not displayed. This is the Stylesheet:
    QSlider::groove:horizontal {
    border: 1px solid #999999;
    border-top-color:rgb(110,130,157);
    height: 40px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
    background: qlineargradient(spreadad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:0.33 rgba(0, 0, 0, 255), stop:0.34 rgba(255, 30, 30, 255), stop:0.66 rgba(255, 0, 0, 255), stop:0.67 rgba(255, 255, 0, 255), stop:1 rgba(255, 255, 0, 255));
    margin: 2px 0;
    }

    In the code i use this properties refered to the slider´s ticks:
    m_ui->horizontalSlider->setTickInterval(4);
    m_ui->horizontalSlider->setTickPosition(QSlider::TicksBothSides);

    Can anyone help me?
    Thanks,
    I.A.

  2. #2
    Join Date
    Jan 2009
    Posts
    53
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qslider Ticks not displayed

    I think there's no stylesheet for tick position on QSlider. QTBUG-3564

Similar Threads

  1. Replies: 10
    Last Post: 8th October 2012, 20:18
  2. Replies: 1
    Last Post: 16th March 2010, 16:23
  3. Problem with scale ticks
    By gd in forum Qwt
    Replies: 4
    Last Post: 10th December 2009, 09:04
  4. QSlider custom handle image not displayed
    By planglois in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2008, 14:49
  5. how to number the ticks of QSlider
    By babu198649 in forum Newbie
    Replies: 4
    Last Post: 11th June 2008, 14:46

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.