[Qt-interest] Resetting a style sheet

David Boosalis david.boosalis at gmail.com
Fri Oct 22 18:25:43 CEST 2010


Thanks for the pointer.  I went and looked at the URL you provided and tried
to implement the hack they suggested of

widget->setStyleSheet("/* */");
widget->setStyleSheet(myStyleSheet);

it works for everything but the grid lines.  Hope it gets fixed in the next
release.

-David


On Fri, Oct 22, 2010 at 8:01 AM, velociraptor Genjix <aphidia at hotmail.com>wrote:

>
> I think you mean this?
> http://developer.qt.nokia.com/forums/viewthread/1333/
>
> ________________________________
> > Date: Fri, 22 Oct 2010 07:04:16 -0700
> > From: david.boosalis at gmail.com
> > To: qt-interest at trolltech.com
> > Subject: [Qt-interest] Resetting a style sheet
> >
> > My application allows users to modify the color theme on their data
> > windows. The themes are defined by Qt Style Sheets, and most things
> > get updated with respect to color. However what does not change is
> > the grid lines on a QTreeView, that is they never show up. The funny
> > thing is is that do show on the Preview dialog depending on the state
> > of the Preview Dialog's checkbox for displaying lines ( I can turn them
> > on / off at will with the checkbox and they show/don't show as they
> > should)
> >
> > So why does it work in a Dialog and not in any of my QMainWindows(s)
> > which are parents to the QTreeView.
> >
> > Any advise appreciated
> >
> > -David
> >
> > _______________________________________________ Qt-interest mailing
> > list Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> 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/20101022/4487bb37/attachment.html 


More information about the Qt-interest-old mailing list