Hi, I'm trying to display a hierarchy and am using HLines and VLines to show relationship.
The only problem is that I can't seem to change their color.
Any help would be much appreciated.
Cheers
G
Hi, I'm trying to display a hierarchy and am using HLines and VLines to show relationship.
The only problem is that I can't seem to change their color.
Any help would be much appreciated.
Cheers
G
What kind of hierarchy? Maybe it'll be easier if you just paint all lines and text instead of using line widgets?
A QFrame with frame shape of QFrame::VLine or QFrame::HLine and frame shadow of QFrame::Plain draws the line with QPalette::WindowText:
Qt Code:
line->setPalette(p);To copy to clipboard, switch view to plain text mode
J-P Nurmi
smtgra011 (5th July 2007)
Legendary, thanks alot.
Cheers
G
Bookmarks