To include the definitions of modules classes, use the following directive:

import PySide2.QtGui

See also

PySide2.QtCore