Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom QSlider without handler, rounded corner lost when values next to MIN or MAX
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    ddonate
    wrote on last edited by
    #1

    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

    !d:\qslider.png(qslider image)!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved