I was able to use stylesheets to change the plot area background. Look at the way you can specify which Qt widgets a stylesheet applies to which can allow you to apply it only to the canvas area.
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqw...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the info, I have a plot in a DockWidget and I had somehow missed how to assign a style to child widgets. So what seems to work is if I have a sub-class of CurveDialog called CurveViewWidget I can assign a style in the sheet like this:
/* for the area around the plot */
QDockWidget .CurveViewerWidget{
background-color: rgb(90,90,90);
}
I also noticed that if I had as the “centralwidget” for my MainWidnow a TabWidget with 2 pages each with an ImageDialog and a CurveViewWidget respectively, the stylesheet would not be applied unless I explicitly called:
self.centralwidget.setStyleSheet(ssheet)
Thanks
-Russ