修改滚动条样式。
This commit is contained in:
parent
1d32a7f831
commit
15f4461aec
|
@ -374,6 +374,7 @@ void ResultArea::initUi()
|
||||||
pal.setColor(QPalette::Window, RESULT_BACKGROUND_COLOR);
|
pal.setColor(QPalette::Window, RESULT_BACKGROUND_COLOR);
|
||||||
scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
|
scroll_bar_pal.setColor(QPalette::Base, RESULT_BACKGROUND_COLOR);
|
||||||
this->verticalScrollBar()->setPalette(scroll_bar_pal);
|
this->verticalScrollBar()->setPalette(scroll_bar_pal);
|
||||||
|
this->verticalScrollBar()->setProperty("drawScrollBarGroove", false);
|
||||||
this->setFrameShape(QFrame::Shape::NoFrame);
|
this->setFrameShape(QFrame::Shape::NoFrame);
|
||||||
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
this->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
this->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||||
|
|
Loading…
Reference in New Issue