I just want to add a horizontal rule (just like <hr>
in HTML, see below) to a QWidget.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With