索引 | 名称 | 现象 | 解决办法 |
1 | 自定义控件stylesheet异常 | 自定义控件使用stylesheet 不生效 | 在paintevent()添加以下代码: QPainter painter(this); QStyleOption opt; opt.init(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this); |
2 |
索引 | 名称 | 现象 | 解决办法 |
1 | 自定义控件stylesheet异常 | 自定义控件使用stylesheet 不生效 | 在paintevent()添加以下代码: QPainter painter(this); QStyleOption opt; opt.init(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this); |
2 |