Author Topic: PySide2.QtCore - missing QEnum/QFlag  (Read 565 times)

Just in Substance Painter's Python terminal - running this:

from PySide2.QtCore import QEnum, QFlag

(as per https://doc-snapshots.qt.io/qtforpython-5.15/PySide2/QtCore/QEnum.html)

returns this error:

ImportError: cannot import name 'QFlag' from 'PySide2.QtCore' (C:\Program Files\Allegorithmic\Substance Painter\resources\pythonsdk\lib\site-packages\PySide2\QtCore.cp37-win_amd64.pyd)



What am I missing?