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 = 1, QBrush = None)

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

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

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

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

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

qDrawShadeRect (QPainter, int, int, int, int, QPalette, bool = False, int = 1, int = 0, QBrush = None)

qDrawShadeRect (QPainter, QRect, QPalette, bool = False, int = 1, int = 0, QBrush = None)

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

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

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

qDrawWinPanel (QPainter, QRect, QPalette, bool = False, QBrush = 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-snapshot-20091211 for X11Copyright © Riverbank Computing Ltd and Nokia 2009Qt 4.6.0