QtGui — PyQt Documentation v5.15.7 (original) (raw)

The QtGui module contains classes for windowing system integration, event handling, 2D graphics, basic imaging, fonts and text. It also containes a complete set of OpenGL and OpenGL ES bindings (seeSupport for OpenGL). Application developers would normally use this with higher level APIs such as those contained in the QtWidgets module.

Classes

QAbstractOpenGLFunctions QImageWriter QPageSize QSyntaxHighlighter
QAbstractTextDocumentLayout QInputEvent QPaintDevice QTabletEvent
QActionEvent QInputMethod QPaintDeviceWindow QTextBlock
QBackingStore QInputMethodEvent QPaintEngine QTextBlockFormat
QBitmap QInputMethodQueryEvent QPaintEngineState QTextBlockGroup
QBrush QIntValidator QPainter QTextBlockUserData
QClipboard QKeyEvent QPainterPath QTextCharFormat
QCloseEvent QKeySequence QPainterPathStroker QTextCursor
QColor QLinearGradient QPaintEvent QTextDocument
QColorConstants QMatrix2x2 QPalette QTextDocumentFragment
QColorSpace QMatrix2x3 QPdfWriter QTextDocumentWriter
QColorTransform QMatrix2x4 QPen QTextFormat
QConicalGradient QMatrix3x2 QPicture QTextFragment
QContextMenuEvent QMatrix3x3 QPictureIO QTextFrame
QCursor QMatrix3x4 QPixelFormat QTextFrameFormat
QDesktopServices QMatrix4x2 QPixmap QTextImageFormat
QDoubleValidator QMatrix4x3 QPixmapCache QTextInlineObject
QDrag QMatrix4x4 QPlatformSurfaceEvent QTextItem
QDragEnterEvent QMouseEvent QPointingDeviceUniqueId QTextLayout
QDragLeaveEvent QMoveEvent QPolygon QTextLength
QDragMoveEvent QMovie QPolygonF QTextLine
QDropEvent QNativeGestureEvent QQuaternion QTextList
QEnterEvent QOffscreenSurface QRadialGradient QTextListFormat
QExposeEvent QOpenGLBuffer QRasterWindow QTextObject
QFileOpenEvent QOpenGLContext QRawFont QTextObjectInterface
QFocusEvent QOpenGLContextGroup QRegExpValidator QTextOption
QFont QOpenGLDebugLogger QRegion QTextTable
QFontDatabase QOpenGLDebugMessage QRegularExpressionValidator QTextTableCell
QFontInfo QOpenGLFramebufferObject QResizeEvent QTextTableCellFormat
QFontMetrics QOpenGLFramebufferObjectFormat QRgba64 QTextTableFormat
QFontMetricsF QOpenGLPaintDevice QScreen QTouchDevice
QGlyphRun QOpenGLPixelTransferOptions QScrollEvent QTouchEvent
QGradient QOpenGLShader QScrollPrepareEvent QTransform
QGuiApplication QOpenGLShaderProgram QSessionManager QValidator
QHelpEvent QOpenGLTexture QShortcutEvent QVector2D
QHideEvent QOpenGLTextureBlitter QShowEvent QVector3D
QHoverEvent QOpenGLTimeMonitor QStandardItem QVector4D
QIcon QOpenGLTimerQuery QStandardItemModel QWhatsThisClickedEvent
QIconDragEvent QOpenGLVersionProfile QStaticText QWheelEvent
QIconEngine QOpenGLVertexArrayObject QStatusTipEvent QWindow
QImage QOpenGLWindow QStyleHints QWindowStateChangeEvent
QImageIOHandler QPagedPaintDevice QSurface
QImageReader QPageLayout QSurfaceFormat

Functions

qAlpha(QRgba64) → int

TODO


qAlpha(int) → int

TODO


qBlue(QRgba64) → int

TODO


qBlue(int) → int

TODO


qFuzzyCompare(QMatrix4x4, QMatrix4x4) → bool

TODO


qFuzzyCompare(QQuaternion, QQuaternion) → bool

TODO


qFuzzyCompare(QTransform, QTransform) → bool

TODO


qFuzzyCompare(QVector2D, QVector2D) → bool

TODO


qFuzzyCompare(QVector3D, QVector3D) → bool

TODO


qFuzzyCompare(QVector4D, QVector4D) → bool

TODO


qGray(int) → int

TODO


qGray(int, int, int) → int

Returns a gray value (0 to 255) from the (r, g, b) triplet.

The gray value is calculated using the formula (r * 11 + g * 16 + b * 5)/32.


qGreen(QRgba64) → int

TODO


qGreen(int) → int

TODO


qIsGray(int) → bool

TODO


qPixelFormatAlpha(int, typeInterpretation: TypeInterpretation = UnsignedInteger) → QPixelFormat

TODO


qPixelFormatCmyk(int, alphaSize: int = 0, alphaUsage: AlphaUsage = IgnoresAlpha, alphaPosition: AlphaPosition = AtBeginning, typeInterpretation: TypeInterpretation = UnsignedInteger) → QPixelFormat

TODO


qPixelFormatGrayscale(int, typeInterpretation: TypeInterpretation = UnsignedInteger) → QPixelFormat

TODO


qPixelFormatHsl(int, alphaSize: int = 0, alphaUsage: AlphaUsage = IgnoresAlpha, alphaPosition: AlphaPosition = AtBeginning, typeInterpretation: TypeInterpretation = FloatingPoint) → QPixelFormat

TODO


qPixelFormatHsv(int, alphaSize: int = 0, alphaUsage: AlphaUsage = IgnoresAlpha, alphaPosition: AlphaPosition = AtBeginning, typeInterpretation: TypeInterpretation = FloatingPoint) → QPixelFormat

TODO


qPixelFormatRgba(int, int, int, int, AlphaUsage, AlphaPosition, premultiplied: AlphaPremultiplied = NotPremultiplied, typeInterpretation: TypeInterpretation = UnsignedInteger) → QPixelFormat

TODO


qPixelFormatYuv(YUVLayout, alphaSize: int = 0, alphaUsage: AlphaUsage = IgnoresAlpha, alphaPosition: AlphaPosition = AtBeginning, premultiplied: AlphaPremultiplied = NotPremultiplied, typeInterpretation: TypeInterpretation = UnsignedByte, byteOrder: ByteOrder = LittleEndian) → QPixelFormat

TODO


qPremultiply(QRgba64) → QRgba64

TODO


qPremultiply(int) → int

TODO


qRed(QRgba64) → int

TODO


qRed(int) → int

TODO


qRgb(int, int, int) → int

Returns the ARGB quadruplet (255, r, g, b).

See also

qRgba(), qRed(), qGreen(), qBlue().


qRgba(int, int, int, int) → int

Returns the ARGB quadruplet (a, r, g, b).

See also

qRgb(), qRed(), qGreen(), qBlue().


qRgba64(int) → QRgba64

TODO


qRgba64(int, int, int, int) → QRgba64

TODO


qt_set_sequence_auto_mnemonic(bool)

Specifies whether mnemonics for menu items, labels, etc., should be honored or not. On Windows and X11, this feature is on by default; on macOS, it is off. When this feature is off (that is, when b is false), mnemonic() always returns an empty string.

Note: This function is not declared in any of Qt’s header files. To use it in your application, declare the function prototype before calling it.


qUnpremultiply(QRgba64) → QRgba64

TODO


qUnpremultiply(int) → int

TODO