Hello!
I've got some problem with styling scrollbar of QScrollArea. I've set stylesheet for QScrollArea:
QScrollBar:vertical
{min
-width
: 40px; margin
-right
: 25px;
}
QScrollBar:vertical {min-width: 40px; margin-right: 25px;}
To copy to clipboard, switch view to plain text mode
But after that I can't see any arrows. I'm trying to change stylesheet of an arrows with:
QScrollBar::down-arrow
:vertical,
QScrollBar::up-arrow
:vertical
{background
: white; width
: 35px; height
: 30px;
}
QScrollBar::down-arrow:vertical, QScrollBar::up-arrow:vertical {background: white; width: 35px; height: 30px;}
To copy to clipboard, switch view to plain text mode
But still can't see them. Any suggestions?
[SOLVED!]
-------------------------------------------
Solved the problem using stylesheet example.
One more. QScrollBar is part of QScrollArea. QScrollBar inherits setSingleStep() from QAbstractSlider - so, can I use It somehow for my QScrollArea to change single step?
thanks in advance
best regards
Tomasz
Bookmarks