How to set a stePagestep of a QScrollBar on qt style sheet?
Solved
General and Desktop
-
I have so many sentences on a scrollArea and I want when I clicked a scrollBar I move from one sentence to onther and the old one is skipped from the list:
QFrame{ border:solid; } QScrollBar:vertical { width: 15px; margin:30px 30px 30px 30px; border-style: solid; } QScrollBar::handle:vertical { min-height: 30px; border: solid ; } QScrollBar::add-line:vertical { subcontrol-position: bottom; subcontrol-origin: margin; border: solid ; height: 30px; } QScrollBar::sub-line:vertical { subcontrol-position: up; subcontrol-origin: margin; border: solid ; height: 30px; } QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; } QScrollBar::up-arrow:vertical { image: url(image/up-arrow.png); } QScrollBar::down-arrow:vertical { image: url(image/down-arrow.png); }
How to add a setPagestep on Qt stylesheet?
-
@slimhs said in How to set a stePagestep of a QScrollBar on qt style sheet?:
How to add a setPagestep on Qt stylesheet?
QScrollBar { qproperty-pageStep: 10; }
-
@raven-worx :Not worked :/
-
@slimhs said in How to set a stePagestep of a QScrollBar on qt style sheet?:
@raven-worx :Not worked :/
can you be more specific?!
@slimhs said in How to set a stePagestep of a QScrollBar on qt style sheet?:
ui->scrollArea->verticalScrollbar()->setSingleStep(10);
in your first post you were talking about setPagestep