QStringListModel missing in PySide2?

213 views
Skip to first unread message

AK Eric

unread,
Nov 10, 2017, 8:18:43 PM11/10/17
to Python Programming for Autodesk Maya
Updating my UI's for Maya 2018/PySide2.  Everything's been humming along, until this:


from PySide2.QtCore import QStringListModel
# Error: ImportError: file <maya console> line 1: cannot import name QStringListModel # 

In PySide (1) this module lived in PySide.QtGui.QStringListModel, and imported fine.  I don't care that they moved it, but... I do care that it's entirely missing. 

Anyone encountered this \ have a workaround?   Have a major tool that relies on this, and right now, quite the roadblock.

thanks

AK Eric

unread,
Nov 10, 2017, 8:43:49 PM11/10/17
to Python Programming for Autodesk Maya
Disregard, guess I had a typo in my code, this actually works:

from PySide2.QtGui import QStringListModel
Reply all
Reply to author
Forward
0 new messages