Hi All,
Qt 4.5
In Designer, In the StyleSheet dialog, I add a border color
and nothing ! zilch ! no border shows.Qt Code:
border-color: rgb(0, 0, 0);To copy to clipboard, switch view to plain text mode
What am I missing ?
Hi All,
Qt 4.5
In Designer, In the StyleSheet dialog, I add a border color
and nothing ! zilch ! no border shows.Qt Code:
border-color: rgb(0, 0, 0);To copy to clipboard, switch view to plain text mode
What am I missing ?
You also have to set the width:
Have you looked at the QGroupBox example in the style sheets documentation: http://doc.trolltech.com/4.5/stylesh...zing-qgroupbox ? They do it in a slightly different way.
Thanks, got a border but the results aren't acceptable at all. (Image attached)
You can prefix your border setting with QGroupBox, that would remove the borders arounds the inner widgets.
You do something like this:
Qt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
To copy to clipboard, switch view to plain text mode
I'm back to no border with this code![]()
Ah, sorry, drop the colon
Yes !
now why is the break at the top left corner along the left side ?
Isn't the break normally along the top and the text in between the break ? like this:
+- groupbox heading ----------+
| |
| |
| |
+------------------------------------+
I get the text on the top... when using Qt 4.5.0.
Does it look like this attached image ? that's what I get QT 4.5 and QT Creator. ( btw: nice IDE ! )
Oops, sorry, I should have taken a look at the example you pointed me to in the first place.don't understand the code, but it got me a good result and the heading is on the line.
I did make one change,
subcontrol-position: top center;
to
subcontrol-position: top left;
and found the top left corner doesn't get drawn, and doesn't look right. For now, I'll settle for centred heading and read into the Style sheet usage further.
Thanks for your help.
I only changed the border, that kept the text in place.
vieraci (30th April 2009)
Bookmarks