| Subject: | [Qt-interest] setMask on QGraphicsView |
|---|---|
| From: | <> |
| Date: | Thu, 18 Mar 2010 02:56:15 +0100 |
|
Hi All,
I have a transparent QGraphicsView I am adding items in it. For the event to pass through I am using setMask and I am passing only the opaque region of the view. My problem is how to calculate opaque region of a widget? Is there any API? One more thing
my view’s content changes all the time I need to set mask continuously as an when there is a update inside view. Currently I am listening to QGraphicsScene::changed signal and then taking all visible items boudingRect and setting the mask to the view but I
feel this is not a correct way to do it. Any other better way?
Regards,
Manish
_______________________________________________ Qt-interest mailing list Qt-interest@xxxxxxxxxxxxx http://lists.trolltech.com/mailman/listinfo/qt-interest |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Qt-interest] Doubts about the Plugin Framework, Bruno Seabra Lima |
|---|---|
| Next by Date: | [Qt-interest] QTcpSocket timeouts, Anatoly Burakov |
| Previous by Thread: | [Qt-interest] hiding items from QGraphicsView, Deepak Chandran |
| Next by Thread: | [Qt-interest] QTcpSocket timeouts, Anatoly Burakov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |