PDA

View Full Version : Border and Frame



big4mil
11th March 2010, 19:18
Hi All,

I would like to have a Frame (QFrame) which only has a border at the bottom.

First I set the frameShape to "NoFrame" and then I did set a style sheet like "border-bottom: 1px solid black;" but unfortunately this does not work => no border is visible at the bottom...

Then I've tried another way... I set the frameShape to "Box" and set a style sheet like "border-bottom: 1px solid black;border-top: 0px;border-right: 0px;border-left: 0px;"

This works now - I only have a border at the bottom of the frame... but also each widget inside that frame has a border (see attachment).

So that may be an another way to create a own border behavoir :confused:

For some ideas or suggations I would be happy!
Many thanks

Lykurg
11th March 2010, 22:30
If you don't use an other frame in that frame set a style sheet like that: QFrame {border: 1px solid #000000;}or if you give the outer frame a unique name you can use also frames inside:QFrame#uniqueName {/*...*/}

zgulser
12th March 2010, 06:47
check out style sheets module >> selector types

big4mil
12th March 2010, 19:46
Hi zgulser,

that's exactly what I was looking for - it works now perfectly!


QFrame#frm_headerDlg {
border-bottom: 1px solid #000000;
border-top: 0px;
border-right: 0px;
border-left: 0px;
}

Many thanks for your hint!

beste regards
big4mil