Hey there,
I'd like to have a QFrame : BOX and PLAIN with only :
- The right Vertical line.
- The bottom Horizontal line.
Like this :
Is it possible ?
Hey there,
I'd like to have a QFrame : BOX and PLAIN with only :
- The right Vertical line.
- The bottom Horizontal line.
Like this :
Is it possible ?
Draws a line separator at the center.
Not what I want.
You can subclass QFrame and draw the lines urself, cant u
bunjee,
Qt Code:
frame->setStyleSheet( "border-width: 2px; border-top-style: none; border-right-style: solid; border-bottom-style: solid; border-left-style: none; border-color: blue; ");To copy to clipboard, switch view to plain text mode
I usually figure out the context of the style sheet setting by opening designer and creating the object, then right click on the object and select "Change styleSheet" option to work out the kinks.
Hope this helps,
Junior
Solved it this way :
Qt Code:
q->setLineWidth(2); q->setContentsMargins(0, 0, 2, 2);To copy to clipboard, switch view to plain text mode
Bookmarks