Hi,

ROI objects inherits from GraphicsObject which also inherits from 
QGraphicsObject (and all ROI objects in pyqtgraph such as rectangle and 
polyline for example inherits from ROI). You should be able to overwrite 
the appropriate class and reimplements the paint method to 'fill' to form. 
That should work, but there may have cleaner way to solve your problems. 
Other ideas?

Vincent

Le mardi 26 juillet 2016 20:29:34 UTC+2, Johannes Teiwes a écrit :
>
> Hi,
>
> I am trying to fill a ROI with a preferable transparent color - is there 
> any way i can do it? 
>
> unfortunately a ROI does not have a function like 
>
> roi.setBrush(some_brush)
>
> So far i didn't find the right method. There is the setPen 
> <http://www.pyqtgraph.org/documentation/graphicsItems/roi.html?highlight=setpen#pyqtgraph.ROI.setPen>Method,
>  
> but it only configure how the edges are drawn. I am not an expert in the 
> Qt-Graphicsview world - i hope there is a widget or any other Qt-object 
> 'behind' the ROI which i can access and set a background color to.. Any 
> help in that direction is greatly appreciated :-)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/9d0f3a5b-0207-4859-99c4-b54b9feff00d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to