[Maya-Python] [PyQt] QPainter and transparencies

2012-09-08 Thread Manuel Macha
I'm having a hard time figuring out how to best deal with transparencies using QPainter (PyQt 4.7 on Mac OSX) I'm getting noisy artifacts in transparent areas of my icon which is painted using a custom QIconEngine class http://pastebin.com/ES55EeQj I'm trying to follow the advice in these articles

Re: [Maya-Python] Re: QT CSS StyleSheet for change Maya UI

2012-09-08 Thread Justin Israel
Thanks for the snippet. But no need to blast the group with 5 copies of the message and images ;) On Sep 8, 2012, at 7:16 AM, vux wrote: > EDIT: > > ui.qApp.setStyleSheet(' \ > QLineEdit#A3FGXfield { border-radius: 0; background-color: #22; color: > #ff } \ > QLineEdit#A3FGYfield { b

Re: [Maya-Python] Re: New powerful code editor

2012-09-08 Thread Justin Israel
It would be possible but it would have to make the assumption that you have opened your commandPort with certain options. Otherwise it would need to be added to more settings in the config that you would be required to set. It needs to know if the python port would be returning anything, and if

[Maya-Python] Re: QT CSS StyleSheet for change Maya UI

2012-09-08 Thread vux
EDIT: ui.qApp.setStyleSheet(' \ QLineEdit#A3FG*X*field { border-radius: 0; background-color: #22; color: #ff } \ QLineEdit#A3FG*Y*field { border-radius: 0; background-color: #22; color: #bbffbb } \ QLineEdit#A3FG*Z*field { border-radius: 0; background-color: #22; color: #ff

[Maya-Python] QT CSS StyleSheet for change Maya UI

2012-09-08 Thread vux
With Qt css styleSheets we may change all aspects of Maya UI very simply. For example this code change all XYZ-fields of AttributeEditor: ui.qApp.setStyleSheet(' \ > QLineEdit#A3FGXfield { border-radius: 0; background-color: #22; color: > #ff } \ > QLineEdit#A3FGXfield { border-radius: 0;

[Maya-Python] CSS styleSheet to change UI

2012-09-08 Thread vux
With Qt css stylesheets we may change all aspects of ui very simple. After this code: > ui.qApp.setStyleSheet(' \ > QLineEdit#A3FGXfield { \ > border-radius: 0; background-color: #22; color: #ff;\ > } \ > QLineEdit#A3FGYfield { \ > border-radius: 0; background-color: #22; color: #bbffb

[Maya-Python] Change style with CSS

2012-09-08 Thread vux
Hi all. Look at how we can simply change ui style with Qt CSS (StyleSheet): And this is simple code example: > ui.qApp.setStyleSheet(' \ > QHBoxLayout { \ > spacing: 10; \ > } \ > QLineEdit#A3FGXfield

[Maya-Python] Re: New powerful code editor

2012-09-08 Thread vux
I have installed sublime and sublimeMaya. It works but not echoing errors. And is it posible to return output from maya to sublime console? -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/s