开发者

How to draw a simple horizontal rule in a QWidget?

I just want to add a horizontal rule (just like <hr> in HTML, see below) to a QWidget.


But I failed t开发者_如何学编程o find such a class in the documentation.

Could anyone give me example code?


This can be done using a QFrame and setting the shape with setFrameShape(QFrame::HLine) and frame shadow using setFrameShadow(QFrame::Sunken). I just noticed that you are working in Python. My answer uses C++ syntax. Hopefully it is sufficient :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜