Re: [Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel.

2019-06-14 Thread Justin Israel
If your model is read-only, then it will be a lot less work and you don't need to implement insertRow(). I can try to put together a simplified example of my own implementation when I get back to work. It's a grouping proxy model that is meant to take a table model and create a tree model with a

Re: [Maya-Python] Getting RuntimeError when trying to use confirmDialog

2019-06-14 Thread kiteh
Tried with the use of QMessageBox, and it is working fine. Initially I had thought this would work as I am calling the confirmDialog in frameEditied() (being first) and importRef() would be called on later.. Adding on, I tried to create the same prompt_dialog() in script editor, wrote 2 lines

Re: [Maya-Python] Customized display of files/folders in a QTreeView that is using QFileSystemModel.

2019-06-14 Thread HarshadB
Hi Justin, Thank you for the insight. It helped to know that theoretically I am going in the right direction. I tried quite a bit of things these last few days, a bit of a struggle since I am a bit new to the syntax and structure of Qt. At this point, I am stuck on adding an extra row using the