PyQt4 - QTreeWidget refreshes every time I open or save file in Maya

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 08 August 2012   #1
PyQt4 - QTreeWidget refreshes every time I open or save file in Maya


My QTreeWidget in my QMainWindow refreshes (collapses tree) every time I open or save file in Maya (2012 & 2013) through my PyQt tool.

Here is how I am opening a file:

cmds.file ( filePath, o=True, f=True )

This is how I am saving a file:
cmds.file( rn=fileName )
   cmds.file( s=True, typ="mayaAscii" )

Is there a way to restrain Maya from refreshing the QTreeWidget?


Last edited by kjdskjdks : 08 August 2012 at 08:28 PM.
Old 08 August 2012   #2
You might want to post your code if you want help with it - that doesn't tell us anything really. It sounds as if your refresh function isn't aware of the current state of the QTreeWidget.
Old 08 August 2012   #3
Hi fezz,

I don't have a refresh function.

I have functions that save & open files (which code I posted above).

When I use those functions, Maya collapses the QTreeWidget.

I want to avoid that. I want my QTreeWidget to not be collapsed.

Hope that clarifies a bit more. Thanks!!
Old 08 August 2012   #4
Yeah, but without seeing what your code is, I can't pinpoint what's wrong. Most of the threads in this section have the problematic code posted...that's how it works.
Old 08 August 2012   #5
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:51 AM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.