技术上没有。
快速查看Qt的源代码后,似乎标准项目类型QGraphics * Item的虚线轮廓为默认行为。您可以通过子类化自己的QGraphicsItem来解决此问题。
if (option->state & (QStyle::State_Selected | QStyle::State_HasFocus))
qt_graphicsItem_highlightSelected(this, painter, option);
Run Code Online (Sandbox Code Playgroud)
我猜你不能改变“风格”。这似乎是标准QGraphicsItems的非常静态的功能。
希望有帮助!
| 归档时间: |
|
| 查看次数: |
3384 次 |
| 最近记录: |