mirror of
https://github.com/XMuli/QtExamples.git
synced 2026-10-22 08:27:03 +08:00
feat: Build the custom redraw frame, eg: QScrollBar
搭建自定义QStyle重绘的框架,使用系统自带的和滚动条QScrollBar为示范
This commit is contained in:
@@ -30,7 +30,8 @@ void Examples::init()
|
||||
|
||||
//设置一个默认的风格
|
||||
ui->comboBox->addItem("ExCustomStyle");
|
||||
qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||
// qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||
qApp->setStyle(new ExCustomStyle());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user