Thanks everyone, I've reached a satisfactory result by pickling down the
Maya QPalette and using that together with some of Tony's code (or Thorsten
Kaufmann's code).

Cheers!


On Wed, Mar 11, 2015 at 1:40 PM Tony Barbieri <great...@gmail.com> wrote:

> They most likely did customize further than just the QPalette.  The
> QPalette should give you a good base to start from.
>
> Best,
>
> On Wed, Mar 11, 2015 at 4:53 AM, Fredrik Averpil <
> fredrik.aver...@gmail.com> wrote:
>
>> Hey guys,
>>
>> I see you've been busy with this while I've been asleep ;)
>>
>> So, it seems you are totally right I cannot fetch the stylesheet, as the
>> UI needs to have been created using the qApp.setStylesheet(), which
>> Autodesk seems not to have done (?). Thanks to Tony's post about QPalette,
>> I started searching and so I found an old post on this list
>> <https://groups.google.com/d/msg/python_inside_maya/jfL6HaEpCrE/HLJHpS51XKcJ>and
>> added a few QPalette roles to the code in that email, and I'm very close to
>> matching the Maya UI now -- by fetching the QPalette groups/roles values,
>> writing those to file, and then setting that data along with the
>> "plastique" style in my own PySide UI.
>>
>> In case anyone's interested:
>> https://gist.github.com/fredrikaverpil/74fa824b506f67efaf15
>>
>> I'm going to try to list all groups and roles as well as the style
>> instead of defining them in the code.
>>
>> Also, I'm noticing that tab widgets don't look the same in Maya as in my
>> app which is now using the Maya palette data. Perhaps Autodesk did an
>> override of some sort on that widget type.
>>
>> // Fredrik
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPQSop2r5oYAJV2x%3DvVrH4Lv8qQmrk2R-%3DqTGhn-QCT-g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPQSop2r5oYAJV2x%3DvVrH4Lv8qQmrk2R-%3DqTGhn-QCT-g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Tony
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsS3136uHgarunsm-r3DHQUWu59zDvDWQ6ddNak%2BLoDqzA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsS3136uHgarunsm-r3DHQUWu59zDvDWQ6ddNak%2BLoDqzA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPTJSki%3D684uKzi0zos1L8onvYnjav16nUwaP5tE%2BXhaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to