Home · All Classes · Modules

QWidget Class Reference
[QtGui module]

Inherits QObject and QPaintDevice.

Inherited by EffectWidget, SeekSlider, VideoPlayer, VideoWidget, VolumeSlider, QAbstractButton, QAbstractSlider, QAbstractSpinBox, QCalendarWidget, QComboBox, QDesignerActionEditorInterface, QDesignerFormWindowInterface, QDesignerObjectInspectorInterface, QDesignerPropertyEditorInterface, QDesignerWidgetBoxInterface, QDesktopWidget, QDialog, QDialogButtonBox, QDockWidget, QFocusFrame, QFrame, QGLWidget, QGroupBox, QHelpSearchQueryWidget, QHelpSearchResultWidget, QLineEdit, QMainWindow, QMdiSubWindow, QMenu, QMenuBar, QPrintPreviewWidget, QProgressBar, QRubberBand, QSizeGrip, QSplashScreen, QSplitterHandle, QStatusBar, QSvgWidget, QTabBar, QTabWidget, QToolBar, QWebInspector, QWebView, QWizardPage, QWorkspace, QX11EmbedContainer and QX11EmbedWidget.

Types

Methods

Static Methods

Qt Signals


Detailed Description


Type Documentation

QWidget.RenderFlag


Method Documentation

QWidget.__init__ (self, QWidget parent = None, Qt.WindowFlags flags = 0)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

bool QWidget.acceptDrops (self)

QString QWidget.accessibleDescription (self)

QString QWidget.accessibleName (self)

QWidget.actionEvent (self, QActionEvent)

list-of-QAction QWidget.actions (self)

QWidget.activateWindow (self)

QWidget.addAction (self, QAction)

QWidget.addActions (self, list-of-QAction)

QWidget.adjustSize (self)

bool QWidget.autoFillBackground (self)

QPalette.ColorRole QWidget.backgroundRole (self)

QSize QWidget.baseSize (self)

QWidget.changeEvent (self, QEvent)

QWidget QWidget.childAt (self, QPoint)

QWidget QWidget.childAt (self, int, int)

QRect QWidget.childrenRect (self)

QRegion QWidget.childrenRegion (self)

QWidget.clearFocus (self)

QWidget.clearMask (self)

bool QWidget.close (self)

This method is also a Qt slot with the C++ signature bool close().

QWidget.closeEvent (self, QCloseEvent)

QMargins QWidget.contentsMargins (self)

QRect QWidget.contentsRect (self)

QWidget.contextMenuEvent (self, QContextMenuEvent)

Qt.ContextMenuPolicy QWidget.contextMenuPolicy (self)

QWidget.create (self, int window = 0, bool initializeWindow = True, bool destroyOldWindow = True)

QCursor QWidget.cursor (self)

QWidget.destroy (self, bool destroyWindow = True, bool destroySubWindows = True)

int QWidget.devType (self)

QWidget.dragEnterEvent (self, QDragEnterEvent)

QWidget.dragLeaveEvent (self, QDragLeaveEvent)

QWidget.dragMoveEvent (self, QDragMoveEvent)

QWidget.dropEvent (self, QDropEvent)

int QWidget.effectiveWinId (self)

QWidget.enabledChange (self, bool)

QWidget.ensurePolished (self)

QWidget.enterEvent (self, QEvent)

bool QWidget.event (self, QEvent)

QWidget QWidget.find (int)

QWidget.focusInEvent (self, QFocusEvent)

bool QWidget.focusNextChild (self)

bool QWidget.focusNextPrevChild (self, bool)

QWidget.focusOutEvent (self, QFocusEvent)

Qt.FocusPolicy QWidget.focusPolicy (self)

bool QWidget.focusPreviousChild (self)

QWidget QWidget.focusProxy (self)

QWidget QWidget.focusWidget (self)

QFont QWidget.font (self)

QWidget.fontChange (self, QFont)

QFontInfo QWidget.fontInfo (self)

QFontMetrics QWidget.fontMetrics (self)

QPalette.ColorRole QWidget.foregroundRole (self)

QRect QWidget.frameGeometry (self)

QSize QWidget.frameSize (self)

QRect QWidget.geometry (self)

(int, int, int, int) QWidget.getContentsMargins (self)

QWidget.grabGesture (self, Qt.GestureType, Qt.GestureFlags flags = Qt.GestureFlags(0))

QWidget.grabKeyboard (self)

QWidget.grabMouse (self)

QWidget.grabMouse (self, QCursor)

int QWidget.grabShortcut (self, QKeySequence, Qt.ShortcutContext context = Qt.WindowShortcut)

QGraphicsEffect QWidget.graphicsEffect (self)

QGraphicsProxyWidget QWidget.graphicsProxyWidget (self)

int QWidget.handle (self)

bool QWidget.hasFocus (self)

bool QWidget.hasMouseTracking (self)

int QWidget.height (self)

int QWidget.heightForWidth (self, int)

QWidget.hide (self)

This method is also a Qt slot with the C++ signature void hide().

QWidget.hideEvent (self, QHideEvent)

QInputContext QWidget.inputContext (self)

QWidget.inputMethodEvent (self, QInputMethodEvent)

Qt.InputMethodHints QWidget.inputMethodHints (self)

QVariant QWidget.inputMethodQuery (self, Qt.InputMethodQuery)

QWidget.insertAction (self, QAction, QAction)

QWidget.insertActions (self, QAction, list-of-QAction)

bool QWidget.isActiveWindow (self)

bool QWidget.isAncestorOf (self, QWidget)

bool QWidget.isEnabled (self)

bool QWidget.isEnabledTo (self, QWidget)

bool QWidget.isEnabledToTLW (self)

bool QWidget.isFullScreen (self)

bool QWidget.isHidden (self)

bool QWidget.isLeftToRight (self)

bool QWidget.isMaximized (self)

bool QWidget.isMinimized (self)

bool QWidget.isModal (self)

bool QWidget.isRightToLeft (self)

bool QWidget.isTopLevel (self)

bool QWidget.isVisible (self)

bool QWidget.isVisibleTo (self, QWidget)

bool QWidget.isWindow (self)

bool QWidget.isWindowModified (self)

QWidget QWidget.keyboardGrabber ()

QWidget.keyPressEvent (self, QKeyEvent)

QWidget.keyReleaseEvent (self, QKeyEvent)

QWidget.languageChange (self)

QLayout QWidget.layout (self)

Qt.LayoutDirection QWidget.layoutDirection (self)

QWidget.leaveEvent (self, QEvent)

QLocale QWidget.locale (self)

QWidget.lower (self)

This method is also a Qt slot with the C++ signature void lower().

QPoint QWidget.mapFrom (self, QWidget, QPoint)

QPoint QWidget.mapFromGlobal (self, QPoint)

QPoint QWidget.mapFromParent (self, QPoint)

QPoint QWidget.mapTo (self, QWidget, QPoint)

QPoint QWidget.mapToGlobal (self, QPoint)

QPoint QWidget.mapToParent (self, QPoint)

QRegion QWidget.mask (self)

int QWidget.maximumHeight (self)

QSize QWidget.maximumSize (self)

int QWidget.maximumWidth (self)

int QWidget.metric (self, QPaintDevice.PaintDeviceMetric)

int QWidget.minimumHeight (self)

QSize QWidget.minimumSize (self)

QSize QWidget.minimumSizeHint (self)

int QWidget.minimumWidth (self)

QWidget.mouseDoubleClickEvent (self, QMouseEvent)

QWidget QWidget.mouseGrabber ()

QWidget.mouseMoveEvent (self, QMouseEvent)

QWidget.mousePressEvent (self, QMouseEvent)

QWidget.mouseReleaseEvent (self, QMouseEvent)

QWidget.move (self, QPoint)

QWidget.move (self, int, int)

QWidget.moveEvent (self, QMoveEvent)

QWidget QWidget.nativeParentWidget (self)

QWidget QWidget.nextInFocusChain (self)

QRect QWidget.normalGeometry (self)

QWidget.overrideWindowFlags (self, Qt.WindowFlags)

QWidget.overrideWindowState (self, Qt.WindowStates)

QPaintEngine QWidget.paintEngine (self)

QWidget.paintEvent (self, QPaintEvent)

QPalette QWidget.palette (self)

QWidget.paletteChange (self, QPalette)

QWidget QWidget.parentWidget (self)

QPoint QWidget.pos (self)

QWidget QWidget.previousInFocusChain (self)

QWidget.raise_ (self)

This method is also a Qt slot with the C++ signature void raise().

QRect QWidget.rect (self)

QWidget.releaseKeyboard (self)

QWidget.releaseMouse (self)

QWidget.releaseShortcut (self, int)

QWidget.removeAction (self, QAction)

QWidget.render (self, QPaintDevice, QPoint targetOffset = QPoint(), QRegion sourceRegion = QRegion(), RenderFlags flags = QWidget.DrawWindowBackground|QWidget.DrawChildren)

QWidget.render (self, QPainter, QPoint targetOffset = QPoint(), QRegion sourceRegion = QRegion(), RenderFlags flags = QWidget.DrawWindowBackground|QWidget.DrawChildren)

QWidget.repaint (self)

This method is also a Qt slot with the C++ signature void repaint().

QWidget.repaint (self, int, int, int, int)

QWidget.repaint (self, QRect)

QWidget.repaint (self, QRegion)

QWidget.resetInputContext (self)

QWidget.resize (self, QSize)

QWidget.resize (self, int, int)

QWidget.resizeEvent (self, QResizeEvent)

bool QWidget.restoreGeometry (self, QByteArray)

QByteArray QWidget.saveGeometry (self)

QWidget.scroll (self, int, int)

QWidget.scroll (self, int, int, QRect)

QWidget.setAcceptDrops (self, bool)

QWidget.setAccessibleDescription (self, QString)

QWidget.setAccessibleName (self, QString)

QWidget.setAttribute (self, Qt.WidgetAttribute, bool on = True)

QWidget.setAutoFillBackground (self, bool)

QWidget.setBackgroundRole (self, QPalette.ColorRole)

QWidget.setBaseSize (self, int, int)

QWidget.setBaseSize (self, QSize)

QWidget.setContentsMargins (self, int, int, int, int)

QWidget.setContentsMargins (self, QMargins)

QWidget.setContextMenuPolicy (self, Qt.ContextMenuPolicy)

QWidget.setCursor (self, QCursor)

QWidget.setDisabled (self, bool)

This method is also a Qt slot with the C++ signature void setDisabled(bool).

QWidget.setEnabled (self, bool)

This method is also a Qt slot with the C++ signature void setEnabled(bool).

QWidget.setFixedHeight (self, int)

QWidget.setFixedSize (self, QSize)

QWidget.setFixedSize (self, int, int)

QWidget.setFixedWidth (self, int)

QWidget.setFocus (self)

This method is also a Qt slot with the C++ signature void setFocus().

QWidget.setFocus (self, Qt.FocusReason)

QWidget.setFocusPolicy (self, Qt.FocusPolicy)

QWidget.setFocusProxy (self, QWidget)

QWidget.setFont (self, QFont)

QWidget.setForegroundRole (self, QPalette.ColorRole)

QWidget.setGeometry (self, QRect)

QWidget.setGeometry (self, int, int, int, int)

QWidget.setGraphicsEffect (self, QGraphicsEffect)

The QGraphicsEffect argument has it's ownership transferred to Qt.

QWidget.setHidden (self, bool)

This method is also a Qt slot with the C++ signature void setHidden(bool).

QWidget.setInputContext (self, QInputContext)

The QInputContext argument has it's ownership transferred to Qt.

QWidget.setInputMethodHints (self, Qt.InputMethodHints)

QWidget.setLayout (self, QLayout)

The QLayout argument has it's ownership transferred to Qt.

QWidget.setLayoutDirection (self, Qt.LayoutDirection)

QWidget.setLocale (self, QLocale)

QWidget.setMask (self, QBitmap)

QWidget.setMask (self, QRegion)

QWidget.setMaximumHeight (self, int)

QWidget.setMaximumSize (self, int, int)

QWidget.setMaximumSize (self, QSize)

QWidget.setMaximumWidth (self, int)

QWidget.setMinimumHeight (self, int)

QWidget.setMinimumSize (self, int, int)

QWidget.setMinimumSize (self, QSize)

QWidget.setMinimumWidth (self, int)

QWidget.setMouseTracking (self, bool)

QWidget.setPalette (self, QPalette)

QWidget.setParent (self, QWidget)

The QWidget argument, if not None, causes self to be owned by Qt instead of PyQt.

QWidget.setParent (self, QWidget, Qt.WindowFlags)

The QWidget argument, if not None, causes self to be owned by Qt instead of PyQt.

QWidget.setShortcutAutoRepeat (self, int, bool enabled = True)

QWidget.setShortcutEnabled (self, int, bool enabled = True)

QWidget.setShown (self, bool)

QWidget.setSizeIncrement (self, int, int)

QWidget.setSizeIncrement (self, QSize)

QWidget.setSizePolicy (self, QSizePolicy)

QWidget.setSizePolicy (self, QSizePolicy.Policy, QSizePolicy.Policy)

QWidget.setStatusTip (self, QString)

QWidget.setStyle (self, QStyle)

QWidget.setStyleSheet (self, QString)

QWidget.setTabOrder (QWidget, QWidget)

QWidget.setToolTip (self, QString)

QWidget.setUpdatesEnabled (self, bool)

QWidget.setVisible (self, bool)

This method is also a Qt slot with the C++ signature void setVisible(bool).

QWidget.setWhatsThis (self, QString)

QWidget.setWindowFilePath (self, QString)

QWidget.setWindowFlags (self, Qt.WindowFlags)

QWidget.setWindowIcon (self, QIcon)

QWidget.setWindowIconText (self, QString)

QWidget.setWindowModality (self, Qt.WindowModality)

QWidget.setWindowModified (self, bool)

This method is also a Qt slot with the C++ signature void setWindowModified(bool).

QWidget.setWindowOpacity (self, float)

QWidget.setWindowRole (self, QString)

QWidget.setWindowState (self, Qt.WindowStates)

QWidget.setWindowTitle (self, QString)

QWidget.show (self)

This method is also a Qt slot with the C++ signature void show().

QWidget.showEvent (self, QShowEvent)

QWidget.showFullScreen (self)

This method is also a Qt slot with the C++ signature void showFullScreen().

QWidget.showMaximized (self)

This method is also a Qt slot with the C++ signature void showMaximized().

QWidget.showMinimized (self)

This method is also a Qt slot with the C++ signature void showMinimized().

QWidget.showNormal (self)

This method is also a Qt slot with the C++ signature void showNormal().

QSize QWidget.size (self)

QSize QWidget.sizeHint (self)

QSize QWidget.sizeIncrement (self)

QSizePolicy QWidget.sizePolicy (self)

QWidget.stackUnder (self, QWidget)

QString QWidget.statusTip (self)

QStyle QWidget.style (self)

QString QWidget.styleSheet (self)

QWidget.tabletEvent (self, QTabletEvent)

bool QWidget.testAttribute (self, Qt.WidgetAttribute)

QString QWidget.toolTip (self)

QWidget QWidget.topLevelWidget (self)

bool QWidget.underMouse (self)

QWidget.ungrabGesture (self, Qt.GestureType)

QWidget.unsetCursor (self)

QWidget.unsetLayoutDirection (self)

QWidget.unsetLocale (self)

QWidget.update (self)

This method is also a Qt slot with the C++ signature void update().

QWidget.update (self, QRect)

QWidget.update (self, QRegion)

QWidget.update (self, int, int, int, int)

QWidget.updateGeometry (self)

QWidget.updateMicroFocus (self)

bool QWidget.updatesEnabled (self)

QRegion QWidget.visibleRegion (self)

QString QWidget.whatsThis (self)

QWidget.wheelEvent (self, QWheelEvent)

int QWidget.width (self)

QWidget QWidget.window (self)

QWidget.windowActivationChange (self, bool)

QString QWidget.windowFilePath (self)

Qt.WindowFlags QWidget.windowFlags (self)

QIcon QWidget.windowIcon (self)

QString QWidget.windowIconText (self)

Qt.WindowModality QWidget.windowModality (self)

float QWidget.windowOpacity (self)

QString QWidget.windowRole (self)

Qt.WindowStates QWidget.windowState (self)

QString QWidget.windowTitle (self)

Qt.WindowType QWidget.windowType (self)

int QWidget.winId (self)

int QWidget.x (self)

QX11Info QWidget.x11Info (self)

int QWidget.x11PictureHandle (self)

int QWidget.y (self)


Qt Signal Documentation

void customContextMenuRequested (const QPoint&)

This is the default overload of this signal.


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0