Hi guys i am facing a name error issue in this code can solve this. "Code"
import maya.OpenMayaUI as omui
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from shiboken2 import wrapInstance
def maya_main_window():
main_window_ptr = omui.MQtUtil_mainWindow()
return wrapInstance(int(main_window_ptr),QWidget)
def Hello_World():
label =QLabel("Hello World !", parent = maya_main_window())
label.setWindowFlag(QtCore.Qt.Tool)
label.show()
if __name__ == "__main__":
Hello_World()
#this is the error i am getting when i am running the code
# Error: NameError: file <maya console> line 16: name 'QtCore' is not defined #
please can anyone tell me whhat i am doing wrong