ArkKup
19th March 2013, 14:09
Hi,
I'd like to create some custom scroll bar for my QTextEdit. I've found good hint to hide original scroll bar and create a bit of padding inside the QTextEdit for the custom QScrollBar
then in that area manually set QScrollBar.
QScrollBar *sBar = new QScrollBar();
edit->setStyleSheet("padding-right: 10");
but how do I set QScrollBar to the padded area ?
I'd like to create some custom scroll bar for my QTextEdit. I've found good hint to hide original scroll bar and create a bit of padding inside the QTextEdit for the custom QScrollBar
then in that area manually set QScrollBar.
QScrollBar *sBar = new QScrollBar();
edit->setStyleSheet("padding-right: 10");
but how do I set QScrollBar to the padded area ?