PDA

View Full Version : Best way to draw a Line



JimDaniel
19th January 2008, 04:22
I feel slightly stupid asking this, but in my app I have a vertical layout, and I want to put some buttons at the bottom and above them have a seperator line, like how the default buttons in a dialog are seperated with a line.

What's the best way to draw this line? Should I use a QPainter object to draw one, or is there some pre-made widget that can provide this?

wysota
19th January 2008, 09:57
Use QFrame with QFrame::HLine frame shape.