Problem with styleSheet
-
@shahriar25 said:
QScrollBar {
background: gray;
}That would make the it look gray ? That is as it should be.
If you set a style sheet on it,
it will not use the rest from style.
So you cannot do both.If you set a style sheet. it will only use stylesheet settings
and might forget some it got from style.
They are not added together. Its ALL or nothing with style sheets.You cannot just change say, background. And it still used bitmaps from Style.
You will have to specify bitmaps in style sheet too.here is how it looks in windows
http://postimg.org/image/y9fp1edkz/ -
Hi,
I can't Thank you enough for the answers. I did it! -
@shahriar25
\o/ super :) -
I have one more Question:
I want the listview to show "Goto File->Add To List to add files"
or a background text for the labels saying "Album" when its empty
How shold I do that? -
@shahriar25 said:
well for the list view, you could have a start item saying that.
And then you then add thr real items, then remove it first. -
Yes that works but if I wanted it tobe in the middle if the listView than what?
and for the QLabel? -
@shahriar25
Well im not sure if you can make
it go to middle of the view.Well for the QLabel, you can just set the text?
-
Yes I can but does it look good?
alright I will leave it empty.
thank you again -
@shahriar25
well QLabel can show html so it can look pretty much as you like
http://doc.qt.io/qt-5.5/richtext-html-subset.html
Color and font wise. -
I did it with rich text
-
@shahriar25
So it turned out as you like? -
Yes it did