[Qt-interest] QFrame::setFrameStyle() and QApplication::setStyleSheet working together?A
Olivier Goffart
ogoffart at trolltech.com
Tue Feb 24 12:19:50 CET 2009
On Monday 16 February 2009 12:26:46 Markus Franke wrote:
> Dear Qt Developers/Users,
>
> in my Qt application I am setting an application wide stylesheet via
> QApplication::setStyleSheet(). Lateron I try to use QLabels which are
> surrounded by a frame. I am using QFrame::setFrameStyle() to achieve
> this. However, it turned out that the frames will only appear if I
> don't set any stylesheet in my application. Otherwise simply no frame
> is drawn. Am I missunderstanding something with Qt Stylesheets? I am
> on Qt 4.4.3.
>
> Thanks for helps and with best regards,
> Markus
This has been resolved in Qt 4.5
As a workaround in Qt 4.4 you could maybe set the frame to the label using
stylesheet border property instead.
Regards.
--
Olivier
More information about the Qt-interest-old
mailing list