[Qt-interest] QFrame::setFrameStyle() and QApplication::setStyleSheet working together?
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Tue Feb 17 11:57:50 CET 2009
Murcus 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
Hi Markus,
Does it work with the stylesheet with everything commented out? Then
progressively uncomment more of the stylesheet to isolate the problem.
Strangely, I found this afternoon that QFrame in 4.4.3 ignores
'border-color: red;' if set in the widget stylesheet - despite being listed
as supported in the Qt Style Sheets Reference for border-color.
Regards,
Tony.
More information about the Qt-interest-old
mailing list