A QApplication instance already exists

前端 未结 3 1951
死守一世寂寞
死守一世寂寞 2021-01-03 00:33

I\'m doing some simple PySide on 3Dsmax 2015.

This is my error:

python.ExecuteFile \"C:\\Program Files\\Autodesk\\3ds Max 2015\\scripts\\Python\\dem         


        
3条回答
  •  臣服心动
    2021-01-03 00:59

    Direct citation from the helpfile (Using PySide):

    Normally one creates a PySide application object in a script using QtGui.QApplication(). However, in 3ds Max, there is already a PySide application running, so you get a handle for that object like this:

    QtGui.QApplication.instance()
    

提交回复
热议问题