S
S
Svyatoslav Nemato2018-10-18 15:03:58
Qt
Svyatoslav Nemato, 2018-10-18 15:03:58

Horizontal Scroll Qt?

How to color a Horizontal Scroll bar with two colors in Qt, one color before the slider button, another after?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svyatoslav Nemato, 2018-10-18
@makklovskiy

The casket just opened)

QSlider::groove:horizontal {
    height: 1px;
    background:#FFFFFF;
   
} 

QSlider::sub-page
{
    background:#007ad9;
}

QSlider::add-page 
{
    background:#FFFFFF;
}

QSlider::handle:horizontal {
    background: #007ad9;
  width: 14px;
  margin: -7px 0px;
  border-radius:7px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question