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¶
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