Discussion:
How to control the colors for everything contained in Plotmanager?
russ
2014-08-29 18:01:03 UTC
Permalink
I am building an application which uses Qt stylesheets to control the look
of all the widgets and I need to
be able to do the same thing with the ImageWidget and CurveWidget's. I
tried modifying some of the settings in
guiqwt/config.py but it doesnt look like things like the background color
for plots is available.

I am likely looking in the wrong place, has someone already done this?
any help appreciated, thanks
-Russ
--
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_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Uwe Rathmann
2014-09-03 07:59:02 UTC
Permalink
Post by russ
I am building an application which uses Qt stylesheets to control the
look of all the widgets and I need to be able to do the same thing with
the ImageWidget and CurveWidget's. I tried modifying some of the
settings in guiqwt/config.py but it doesnt look like things like the
background color for plots is available.
guiqwt uses a very outdated version of Qwt ( via pyqwt ), that was
implemented long before stylesheets have been introduced in Qt.

Uwe
--
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_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Eric McDonald
2014-09-05 14:19:21 UTC
Permalink
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.
Post by russ
I am building an application which uses Qt stylesheets to control the look
of all the widgets and I need to
be able to do the same thing with the ImageWidget and CurveWidget's. I
tried modifying some of the settings in
guiqwt/config.py but it doesnt look like things like the background color
for plots is available.
I am likely looking in the wrong place, has someone already done this?
any help appreciated, thanks
-Russ
--
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
For more options, visit https://groups.google.com/d/optout.
--
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_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Russ Berg
2014-09-05 16:29:13 UTC
Permalink
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

From: guidata_guiqwt-/***@public.gmane.org [mailto:***@googlegroups.com] On Behalf Of Eric McDonald
Sent: September-05-14 8:19 AM
To: guidata_guiqwt-/***@public.gmane.org
Subject: Re: [guidata/guiqwt] How to control the colors for everything contained in Plotmanager?


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.
On Aug 31, 2014 4:56 AM, "russ" <whiskeypistols-***@public.gmane.org<mailto:whiskeypistols-***@public.gmane.org>> wrote:
I am building an application which uses Qt stylesheets to control the look of all the widgets and I need to
be able to do the same thing with the ImageWidget and CurveWidget's. I tried modifying some of the settings in
guiqwt/config.py but it doesnt look like things like the background color for plots is available.

I am likely looking in the wrong place, has someone already done this?
any help appreciated, thanks
-Russ
--
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_guiqwt+unsubscribe-/***@public.gmane.org<mailto:guidata_guiqwt+unsubscribe-/***@public.gmane.org>.
For more options, visit https://groups.google.com/d/optout.
--
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_guiqwt+unsubscribe-/***@public.gmane.org<mailto:guidata_guiqwt+unsubscribe-/***@public.gmane.org>.
For more options, visit https://groups.google.com/d/optout.
--
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_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...