You are not logged in.

Thusitha

Beginner

  • "Thusitha" is male
  • "Thusitha" started this thread

Posts: 2

Location: Rathnapura

Occupation: Student

  • Send private message

1

Saturday, September 15th 2012, 11:24am

How to Set style sheet for a Phonon::SeekSlider in Qt

I want to know how can I set a style sheet for a Phonon/SeekSlider as like as a QSlider in Qt.
With QSliders we can assign so many attributes by easily calling something like this

Source code

1
2
3
4
5
6
7
8
QSlider::handle:horizontal {
background:white;
border: 1px solid white;
width: 6px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 0px;
}


But how can I do this same with SeekSlider.I cannot set attributes by
calling Phonon/SeekSlider or QSlider. Only I can do is set attributes
by calling QWidget {} and it has no use on SeekSlider. I must be able to customize the handle,page etc...
Please anyone has ideas...Help me !!!

Thusitha

Beginner

  • "Thusitha" is male
  • "Thusitha" started this thread

Posts: 2

Location: Rathnapura

Occupation: Student

  • Send private message

2

Saturday, September 15th 2012, 11:37am

Got the Answewr !!!


Source code

1
2
3
4
5
6
7
Phonon--SeekSlider > QSlider {

}

Phonon--SeekSlider > QSlider::handle {

}