Results 1 to 1 of 1

Thread: Custom QSlider without handler, rounded corner lost when values next to MIN or MAX

  1. #1
    Join Date
    Apr 2013
    Posts
    58
    Qt products
    Qt4
    Platforms
    Windows

    Default Custom QSlider without handler, rounded corner lost when values next to MIN or MAX

    qslider.png
    Hi,

    I have an horizontal custom QSlider without handler, and rounded corners.
    My problem is when I set slider value to the minimum or the maximum (+-1px), and external corner is NOT rounded anymore...

    It seems to happen when the slider value gets round radius, I hope I am explaining myself...

    The stylesheet code is:

    QSlider::groove:horizontal {
    border: 1px solid #999999;
    height: 8px;
    margin: 2px 0;
    border-radius: 5px;
    }

    QSlider::handle:horizontal {
    width: 0px;
    border: 0px ;
    margin-right: 0px;
    border-radius: 0px;
    }

    QSlider::add-page:qlineargradient {
    background: white;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    }

    QSlider::sub-page:qlineargradient {
    background: red;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    }

    Thanks in advance,

    Diego
    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: 9th September 2009, 03:35
  2. How to put custom handle image in QSlider using code?
    By montylee in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 20:38
  3. QSlider custom handle image not displayed
    By planglois in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2008, 14:49
  4. QSlider and qint64 values
    By kemp in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2007, 21:19
  5. QSlider with a custom set of labels for the tick marks?
    By whitefurrows in forum Qt Programming
    Replies: 3
    Last Post: 5th August 2007, 17:05

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.