Wing IDE 5 and QT

For those using wingide 5, you can customize the UI using your normal qt tricks you employ in maya. One thing I hate about wing is its ugly and all the themes make it even uglier. SO with wing5 its in qt, so all I needed to do was get the window and slap on my own CSS:


import sys
import wingapi

## -- Out CSS file we use for our Qt apps
import CSS
## -- Resource file that has icons, etc
import master_rc


win = wingapi.gApplication.fSingletons.fWinMgr.GetActiveWindow()
if win:
    qtwin = win.fGtkWindow
    qtwin.setStyleSheet(CSS.text()) ## -- Set the stylesheet to ours

Just save this in C:\Users\USER\AppData\Roaming\Wing IDE 5\scripts and you’re all set. This was just a simple proof of concept, i still need to flesh out getting it to work on startup.

Pretty awesome! I hadn’t actually thought of doing that in Maya, actually, it’s a great ida though.

We pretty much stole the css to make our tools look like maya because it looks nice. So we just apply this css to qt tools and wing now to make it all look cohesive.

I saw on a google groups, you can use maya resources in your tools as well. Just make

QtGui.QIcon(’:polyCube.png’)

You can see what’s available in the resource browser. Theoretically, you could probably replace their icons with your own if you loaded in you own resource file.