修改滚动条样式。

This commit is contained in:
iaom 2022-06-06 14:52:59 +08:00
parent 1d32a7f831
commit 15f4461aec
1 changed files with 1 additions and 0 deletions

View File

@ -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);