[SOLVED] DRAW A LINE IN A QWidget OR QLabels OR QFRAME OR OTHER
I would like to draw a line in a QLabels, or QWidget, or qframe or other
Subclass that class you want and implement paintEvent by first calling the base implementation and then do your drawing using QPainter.
I solved it.
I used qgraphicsview.
You can also use QFrame with the option "frameShape" to HLine or VLine. possible to customize the line with Stylesheet,
I actually I needed a subject on which you can draw lines, rectangles, circles, etc. ..
for the moment with qgraphicsview I can do what I need. I do not know if we will have problems. But for the moment I can do lines, circles, rectangles, etc. ..