[Qt-interest] Setting QGroupbox border color in stylesheet creates spacing issues

Alan Ezust alan.ezust at gmail.com
Sat Sep 17 19:42:28 CEST 2011


https://bugreports.qt.nokia.com/browse/QTBUG-9968

On Sun, Jun 7, 2009 at 12:37 AM, anjani gupta <anjanigupta_dce at yahoo.com>wrote:

> Hi,
>
> In Windows with display theme as 'Windows XP', if  'QGroupbox' is shown in
> 'QMainWindow', it's border is not visible. It looks like main window's
> background color and QGroupbox border color is same. To fix this, I am
> trying to set QGroupBox border color in stylesheet as follows:
>
> QGroupBox { border: 1px solid red; margin-top: 3ex; }
> QGroupBox::title {
> subcontrol-origin: margin;
> left: 5px;
> top: 3px;
> }
>
> With this style setting, spacing between groupbox title and first widget in
> groupbox gets reduced. Is there some way to resolve this? Please find the
> screenshot attached with this mail to get clear picture of problem.
>
> Thanks in advance!
>
> Regards,
> Anjani
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110917/911e6275/attachment.html 


More information about the Qt-interest-old mailing list