Hello, i am learning python for Maya, trying to follow few tutorials and use Qt.py,
but i don’t think i was able to set up everything correctly… please help.
PyCharm 2018.1.4 Community Edition
So, i downloaded Qt.py from https://github.com/mottosso/Qt.py
I placed it inside Maya scripts folder and it seems like everything works fine within Maya.
if i do something like:
import Qt from Qt import QtWidgets from Qt import QtGui from Qt import QtCore print Qt print QtWidgets print QtGui print QtCore win = Qt.QtWidgets.QDialog() win.show()
This gives me:
<module ‘Qt’ from ‘C:/Users/My_Name/Documents/maya/2016/prefs/scripts\Qt.py’>
<module ‘Qt.QtWidgets’ (built-in)>
<module ‘Qt.QtGui’ (built-in)>
<module ‘Qt.QtCore’ (built-in)>
It creates an empty window, which makes we feel that everything is working correctly.
But when i put same code inside PyCharm
it says that it can’t find the reference
I have added my Maya scripts folder as a Source root
and I have selected Add source roots to PYTHONPATH
not sure what am i doing wrong, any hint would be much appreciated, thanks!