I've seen other people post about this issue as well. I think maya uses the window id to draw directly to the widget in OpenGL. So the solution would probably involve drawing to it in a lower level way.
The best I have thought about for now is having an event filter with a widget just parented to the main window, that watches the viewport resize/move/etc events and stays tacked on. On Sep 1, 2012, at 1:27 PM, Mike Malinowski (LIONHEAD) wrote: > I was trying to do something similar ( drawing a non-square transparent bg qt > widget as a child of the viewport ) and hit exactly the same issue that you > describe. Sadly I never found a solution and couldn't spend masses of time > looking at it, so I can't really help but if you do find a solution I'd > certainly like to hear it! > > > From: vux <[email protected]> > Reply-To: "[email protected]" > <[email protected]> > Date: Saturday, 1 September 2012 10:41 > To: "[email protected]" > <[email protected]> > Subject: [Maya-Python] Re: Transparent QWidget on Viewport > > I need for example QLabel with text but without background on viewport. I > meen that widget is child of viewport. My attempts were unsuccessful. > The background allways fill with noise of older refreshes of viewport :( > > пятница, 31 августа 2012 г., 22:54:27 UTC+3 пользователь vux написал: >> >> Is it posible to draw qwidget with transparent background above maya 3d >> viewport? >> > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
