Reputation: 339
I just want to add a horizontal rule (just like <hr>
in HTML, see below) to a QWidget.
Upvotes: 11
Views: 4186
Reputation: 22282
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 :)
Upvotes: 17