Skip to content

Instantly share code, notes, and snippets.

@mrexodia
Created August 26, 2014 11:02
Show Gist options
  • Save mrexodia/569b0d37757a892f91c9 to your computer and use it in GitHub Desktop.
Save mrexodia/569b0d37757a892f91c9 to your computer and use it in GitHub Desktop.
nice scrollbars
//scrollbar style (http://img0.www.suckmypic.net/img/N/k/bmSkF3Jp/chrome_scrollbar.png)
horizontalScrollBar()->setStyleSheet("QScrollBar:horizontal{border:1px solid grey;background:#f1f1f1;height:10px}QScrollBar::handle:horizontal{background:#aaa;min-width:20px;margin:1px}QScrollBar::add-line:horizontal,QScrollBar::sub-line:horizontal{width:0;height:0}");
verticalScrollBar()->setStyleSheet("QScrollBar:vertical{border:1px solid grey;background:#f1f1f1;width:10px}QScrollBar::handle:vertical{background:#aaa;min-height:20px;margin:1px}QScrollBar::add-line:vertical,QScrollBar::sub-line:vertical{width:0;height:0}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment