try:
    from PySide.QtGui import (QAbstractTextDocumentLayout,
                              QAccessibleEvent,
                              QActionEvent,
                              QBitmap,
                              QBrush,
                              QClipboard,
                              QCloseEvent,
                              QColor,
                              QConicalGradient,
                              QContextMenuEvent,
                              QCursor,
                              QDoubleValidator,
                              QDrag,
                              QDragEnterEvent,
                              QDragLeaveEvent,
                              QDragMoveEvent,
                              QDropEvent,
                              QFileOpenEvent,
                              QFocusEvent,
                              QFont,
                              QFontDatabase,
                              QFontInfo,
                              QFontMetrics,
                              QFontMetricsF,
                              QGradient,
                              QHelpEvent,
                              QHideEvent,
                              QHoverEvent,
                              QIcon,
                              QIconDragEvent,
                              QIconEngine,
                              QImage,
                              QImageIOHandler,
                              QImageReader,
                              QImageWriter,
                              QInputEvent,
                              QInputMethodEvent,
                              QIntValidator,
                              QKeyEvent,
                              QKeySequence,
                              QLinearGradient,
                              QMatrix,
                              QMatrix2x2,
                              QMatrix2x3,
                              QMatrix2x4,
                              QMatrix3x2,
                              QMatrix3x3,
                              QMatrix3x4,
                              QMatrix4x2,
                              QMatrix4x3,
                              QMatrix4x4,
                              QMouseEvent,
                              QMoveEvent,
                              QMovie,
                              QPaintDevice,
                              QPaintEngine,
                              QPaintEngineState,
                              QPaintEvent,
                              QPainter,
                              QPainterPath,
                              QPainterPathStroker,
                              QPalette,
                              QPen,
                              QPicture,
                              QPictureIO,
                              QPixmap,
                              QPixmapCache,
                              QPolygon,
                              QPolygonF,
                              QPyTextObject,
                              QQuaternion,
                              QRadialGradient,
                              QRegExpValidator,
                              QRegion,
                              QResizeEvent,
                              QSessionManager,
                              QShortcutEvent,
                              QShowEvent,
                              QStandardItem,
                              QStandardItemModel,
                              QStatusTipEvent,
                              QStringListModel,
                              QSyntaxHighlighter,
                              QTabletEvent,
                              QTextBlock,
                              QTextBlockFormat,
                              QTextBlockGroup,
                              QTextBlockUserData,
                              QTextCharFormat,
                              QTextCursor,
                              QTextDocument,
                              QTextDocumentFragment,
                              QTextFormat,
                              QTextFragment,
                              QTextFrame,
                              QTextFrameFormat,
                              QTextImageFormat,
                              QTextInlineObject,
                              QTextItem,
                              QTextLayout,
                              QTextLength,
                              QTextLine,
                              QTextList,
                              QTextListFormat,
                              QTextObject,
                              QTextObjectInterface,
                              QTextOption,
                              QTextTable,
                              QTextTableCell,
                              QTextTableCellFormat,
                              QTextTableFormat,
                              QToolBarChangeEvent,
                              QTouchEvent,
                              QTransform,
                              QValidator,
                              QVector2D,
                              QVector3D,
                              QVector4D,
                              QWhatsThisClickedEvent,
                              QWheelEvent,
                              QWindowStateChangeEvent)
except ImportError:

    from PySide2.QtGui import (QAbstractTextDocumentLayout,
                               QAccessibleEvent,
                               QActionEvent,
                               QBitmap,
                               QBrush,
                               QClipboard,
                               QCloseEvent,
                               QColor,
                               QConicalGradient,
                               QContextMenuEvent,
                               QCursor,
                               QDoubleValidator,
                               QDrag,
                               QDragEnterEvent,
                               QDragLeaveEvent,
                               QDragMoveEvent,
                               QDropEvent,
                               QFileOpenEvent,
                               QFocusEvent,
                               QFont,
                               QFontDatabase,
                               QFontInfo,
                               QFontMetrics,
                               QFontMetricsF,
                               QGradient,
                               QHelpEvent,
                               QHideEvent,
                               QHoverEvent,
                               QIcon,
                               QIconDragEvent,
                               QIconEngine,
                               QImage,
                               QImageIOHandler,
                               QImageReader,
                               QImageWriter,
                               QInputEvent,
                               QInputMethodEvent,
                               QIntValidator,
                               QKeyEvent,
                               QKeySequence,
                               QLinearGradient,
                               QMatrix,
                               QMatrix2x2,
                               QMatrix2x3,
                               QMatrix2x4,
                               QMatrix3x2,
                               QMatrix3x3,
                               QMatrix3x4,
                               QMatrix4x2,
                               QMatrix4x3,
                               QMatrix4x4,
                               QMouseEvent,
                               QMoveEvent,
                               QMovie,
                               QPaintDevice,
                               QPaintEngine,
                               QPaintEngineState,
                               QPaintEvent,
                               QPainter,
                               QPainterPath,
                               QPainterPathStroker,
                               QPalette,
                               QPen,
                               QPicture,
                               QPictureIO,
                               QPixmap,
                               QPixmapCache,
                               QPolygon,
                               QPolygonF,
                               QPyTextObject,
                               QQuaternion,
                               QRadialGradient,
                               QRegExpValidator,
                               QRegion,
                               QResizeEvent,
                               QSessionManager,
                               QShortcutEvent,
                               QShowEvent,
                               QStandardItem,
                               QStandardItemModel,
                               QStatusTipEvent,
                               QStringListModel,
                               QSyntaxHighlighter,
                               QTabletEvent,
                               QTextBlock,
                               QTextBlockFormat,
                               QTextBlockGroup,
                               QTextBlockUserData,
                               QTextCharFormat,
                               QTextCursor,
                               QTextDocument,
                               QTextDocumentFragment,
                               QTextFormat,
                               QTextFragment,
                               QTextFrame,
                               QTextFrameFormat,
                               QTextImageFormat,
                               QTextInlineObject,
                               QTextItem,
                               QTextLayout,
                               QTextLength,
                               QTextLine,
                               QTextList,
                               QTextListFormat,
                               QTextObject,
                               QTextObjectInterface,
                               QTextOption,
                               QTextTable,
                               QTextTableCell,
                               QTextTableCellFormat,
                               QTextTableFormat,
                               QToolBarChangeEvent,
                               QTouchEvent,
                               QTransform,
                               QValidator,
                               QVector2D,
                               QVector3D,
                               QVector4D,
                               QWhatsThisClickedEvent,
                               QWheelEvent,
                               QWindowStateChangeEvent)
