Home · All Classes · Modules

QtGui Module

The QtGui module extends QtCore with GUI functionality. More...

Types

Module Functions

Module Members


Detailed Description

The QtGui module extends QtCore with GUI functionality.

To import the module use, for example, the following statement:

from PyQt4 import QtGui

Function Documentation

int qAlpha (int)

Returns the alpha component of the ARGB quadruplet rgba.

See also qRgb() and QColor.alpha().

int qBlue (int)

Returns the blue component of the ARGB quadruplet rgb.

See also qRgb() and QColor.blue().

qDrawBorderPixmap (QPainter, QRect, QMargins, QPixmap)

qDrawPlainRect (QPainter, int, int, int, int, QColor, int lineWidth = 1, QBrush fill = None)

qDrawPlainRect (QPainter, QRect, QColor, int lineWidth = 1, QBrush fill = None)

qDrawShadeLine (QPainter, int, int, int, int, QPalette, bool sunken = True, int lineWidth = 1, int midLineWidth = 0)

qDrawShadeLine (QPainter, QPoint, QPoint, QPalette, bool sunken = True, int lineWidth = 1, int midLineWidth = 0)

qDrawShadePanel (QPainter, int, int, int, int, QPalette, bool sunken = False, int lineWidth = 1, QBrush fill = None)

qDrawShadePanel (QPainter, QRect, QPalette, bool sunken = False, int lineWidth = 1, QBrush fill = None)

qDrawShadeRect (QPainter, int, int, int, int, QPalette, bool sunken = False, int lineWidth = 1, int midLineWidth = 0, QBrush fill = None)

qDrawShadeRect (QPainter, QRect, QPalette, bool sunken = False, int lineWidth = 1, int midLineWidth = 0, QBrush fill = None)

qDrawWinButton (QPainter, int, int, int, int, QPalette, bool sunken = False, QBrush fill = None)

qDrawWinButton (QPainter, QRect, QPalette, bool sunken = False, QBrush fill = None)

qDrawWinPanel (QPainter, int, int, int, int, QPalette, bool sunken = False, QBrush fill = None)

qDrawWinPanel (QPainter, QRect, QPalette, bool sunken = False, QBrush fill = None)

bool qFuzzyCompare (QMatrix, QMatrix)

bool qFuzzyCompare (QMatrix4x4, QMatrix4x4)

bool qFuzzyCompare (QQuaternion, QQuaternion)

bool qFuzzyCompare (QTransform, QTransform)

bool qFuzzyCompare (QVector2D, QVector2D)

bool qFuzzyCompare (QVector3D, QVector3D)

bool qFuzzyCompare (QVector4D, QVector4D)

int qGray (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.

int qGray (int)

This is an overloaded function.

Returns a gray value (0 to 255) from the given ARGB quadruplet rgb.

The gray value is calculated using the formula (R * 11 + G * 16 + B * 5)/32; the alpha-channel is ignored.

int qGreen (int)

Returns the green component of the ARGB quadruplet rgb.

See also qRgb() and QColor.green().

bool qIsGray (int)

int qRed (int)

Returns the red component of the ARGB quadruplet rgb.

See also qRgb() and QColor.red().

int qRgb (int, int, int)

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

See also qRgba(), qRed(), qGreen(), and qBlue().

int qRgba (int, int, int, int)

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

See also qRgb(), qRed(), qGreen(), and qBlue().

qSwap (QBitmap, QBitmap)

qSwap (QBrush, QBrush)

qSwap (QIcon, QIcon)

qSwap (QImage, QImage)

qSwap (QKeySequence, QKeySequence)

qSwap (QPen, QPen)

qSwap (QPicture, QPicture)

qSwap (QPixmap, QPixmap)

qt_x11_wait_for_window_manager (QWidget widget)


Member Documentation

QApplication qApp

This member should be treated as a constant.

A global pointer referring to the unique application object. It is equivalent to the pointer returned by the QCoreApplication.instance() function except that, in GUI applications, it is a pointer to a QApplication instance.

Only one application object can be created.

See also QCoreApplication.instance().


PyQt 4.7.3 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.2