Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QWindow »

Informations générales

Héritage

builtins.object
    Object
        QSurface
builtins.object
    Object
        QObject
            QWindow

Définition

class QWindow(QObject, QSurface):

Description [extrait de QWindow.__doc__]

QWindow(self, parent: PySide2.QtGui.QWindow)
QWindow(self, screen: typing.Union[PySide2.QtGui.QScreen, NoneType] = None)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AutomaticVisibilityPySide2.QtGui.QWindow.Visibility.AutomaticVisibility
ExcludeTransientsPySide2.QtGui.QWindow.AncestorMode.ExcludeTransients
FullScreenPySide2.QtGui.QWindow.Visibility.FullScreen
HiddenPySide2.QtGui.QWindow.Visibility.Hidden
IncludeTransientsPySide2.QtGui.QWindow.AncestorMode.IncludeTransients
MaximizedPySide2.QtGui.QWindow.Visibility.Maximized
MetalSurfacePySide2.QtGui.QSurface.SurfaceType.MetalSurface
MinimizedPySide2.QtGui.QWindow.Visibility.Minimized
OffscreenPySide2.QtGui.QSurface.SurfaceClass.Offscreen
OpenGLSurfacePySide2.QtGui.QSurface.SurfaceType.OpenGLSurface
OpenVGSurfacePySide2.QtGui.QSurface.SurfaceType.OpenVGSurface
RasterGLSurfacePySide2.QtGui.QSurface.SurfaceType.RasterGLSurface
RasterSurfacePySide2.QtGui.QSurface.SurfaceType.RasterSurface
staticMetaObject<PySide2.QtCore.QMetaObject object at 0x7efe36ac3580>
VulkanSurfacePySide2.QtGui.QSurface.SurfaceType.VulkanSurface
WindowPySide2.QtGui.QSurface.SurfaceClass.Window
WindowedPySide2.QtGui.QWindow.Visibility.Windowed

Attributs statiques hérités de la classe QSurface

m_type

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
accessibleRoot(self) -> PySide2.QtGui.QAccessibleInterface accessibleRoot(self) -> PySide2.QtGui.QAccessibleInterface [extrait de accessibleRoot.__doc__]
activeChanged
alert(self, msec: int) alert(self, msec: int) [extrait de alert.__doc__]
AncestorMode
baseSize(self) -> PySide2.QtCore.QSize baseSize(self) -> PySide2.QtCore.QSize [extrait de baseSize.__doc__]
close(self) -> bool close(self) -> bool [extrait de close.__doc__]
contentOrientation(self) -> PySide2.QtCore.Qt.ScreenOrientation contentOrientation(self) -> PySide2.QtCore.Qt.ScreenOrientation [extrait de contentOrientation.__doc__]
contentOrientationChanged
create(self) create(self) [extrait de create.__doc__]
cursor(self) -> PySide2.QtGui.QCursor cursor(self) -> PySide2.QtGui.QCursor [extrait de cursor.__doc__]
destroy(self) destroy(self) [extrait de destroy.__doc__]
destroyed
devicePixelRatio(self) -> float devicePixelRatio(self) -> float [extrait de devicePixelRatio.__doc__]
event(self, arg__1: PySide2.QtCore.QEvent) -> bool event(self, arg__1: PySide2.QtCore.QEvent) -> bool [extrait de event.__doc__]
exposeEvent(self, arg__1: PySide2.QtGui.QExposeEvent) exposeEvent(self, arg__1: PySide2.QtGui.QExposeEvent) [extrait de exposeEvent.__doc__]
filePath(self) -> str filePath(self) -> str [extrait de filePath.__doc__]
flags(self) -> PySide2.QtCore.Qt.WindowFlags flags(self) -> PySide2.QtCore.Qt.WindowFlags [extrait de flags.__doc__]
focusInEvent(self, arg__1: PySide2.QtGui.QFocusEvent) focusInEvent(self, arg__1: PySide2.QtGui.QFocusEvent) [extrait de focusInEvent.__doc__]
focusObject(self) -> PySide2.QtCore.QObject focusObject(self) -> PySide2.QtCore.QObject [extrait de focusObject.__doc__]
focusObjectChanged
focusOutEvent(self, arg__1: PySide2.QtGui.QFocusEvent) focusOutEvent(self, arg__1: PySide2.QtGui.QFocusEvent) [extrait de focusOutEvent.__doc__]
format(self) -> PySide2.QtGui.QSurfaceFormat format(self) -> PySide2.QtGui.QSurfaceFormat [extrait de format.__doc__]
frameGeometry(self) -> PySide2.QtCore.QRect frameGeometry(self) -> PySide2.QtCore.QRect [extrait de frameGeometry.__doc__]
frameMargins(self) -> PySide2.QtCore.QMargins frameMargins(self) -> PySide2.QtCore.QMargins [extrait de frameMargins.__doc__]
framePosition(self) -> PySide2.QtCore.QPoint framePosition(self) -> PySide2.QtCore.QPoint [extrait de framePosition.__doc__]
fromWinId(id: int) -> PySide2.QtGui.QWindow fromWinId(id: int) -> PySide2.QtGui.QWindow [extrait de fromWinId.__doc__]
geometry(self) -> PySide2.QtCore.QRect geometry(self) -> PySide2.QtCore.QRect [extrait de geometry.__doc__]
height(self) -> int height(self) -> int [extrait de height.__doc__]
heightChanged
hide(self) hide(self) [extrait de hide.__doc__]
hideEvent(self, arg__1: PySide2.QtGui.QHideEvent) hideEvent(self, arg__1: PySide2.QtGui.QHideEvent) [extrait de hideEvent.__doc__]
icon(self) -> PySide2.QtGui.QIcon icon(self) -> PySide2.QtGui.QIcon [extrait de icon.__doc__]
isActive(self) -> bool isActive(self) -> bool [extrait de isActive.__doc__]
isAncestorOf(self, child: PySide2.QtGui.QWindow, mode: PySide2.QtGui.QWindow.AncestorMode = PySide2.QtGui.QWindow.AncestorMode.IncludeTransients) -> bool isAncestorOf(self, child: PySide2.QtGui.QWindow, mode: PySide2.QtGui.QWindow.AncestorMode = PySide2.QtGui.QWindow.AncestorMode.IncludeTransients) -> bool [extrait de isAncestorOf.__doc__]
isExposed(self) -> bool isExposed(self) -> bool [extrait de isExposed.__doc__]
isModal(self) -> bool isModal(self) -> bool [extrait de isModal.__doc__]
isTopLevel(self) -> bool isTopLevel(self) -> bool [extrait de isTopLevel.__doc__]
isVisible(self) -> bool isVisible(self) -> bool [extrait de isVisible.__doc__]
keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) [extrait de keyPressEvent.__doc__]
keyReleaseEvent(self, arg__1: PySide2.QtGui.QKeyEvent) keyReleaseEvent(self, arg__1: PySide2.QtGui.QKeyEvent) [extrait de keyReleaseEvent.__doc__]
lower(self) lower(self) [extrait de lower.__doc__]
mapFromGlobal(self, pos: PySide2.QtCore.QPoint) -> PySide2.QtCore.QPoint mapFromGlobal(self, pos: PySide2.QtCore.QPoint) -> PySide2.QtCore.QPoint [extrait de mapFromGlobal.__doc__]
mapToGlobal(self, pos: PySide2.QtCore.QPoint) -> PySide2.QtCore.QPoint mapToGlobal(self, pos: PySide2.QtCore.QPoint) -> PySide2.QtCore.QPoint [extrait de mapToGlobal.__doc__]
mask(self) -> PySide2.QtGui.QRegion mask(self) -> PySide2.QtGui.QRegion [extrait de mask.__doc__]
maximumHeight(self) -> int maximumHeight(self) -> int [extrait de maximumHeight.__doc__]
maximumHeightChanged
maximumSize(self) -> PySide2.QtCore.QSize maximumSize(self) -> PySide2.QtCore.QSize [extrait de maximumSize.__doc__]
maximumWidth(self) -> int maximumWidth(self) -> int [extrait de maximumWidth.__doc__]
maximumWidthChanged
minimumHeight(self) -> int minimumHeight(self) -> int [extrait de minimumHeight.__doc__]
minimumHeightChanged
minimumSize(self) -> PySide2.QtCore.QSize minimumSize(self) -> PySide2.QtCore.QSize [extrait de minimumSize.__doc__]
minimumWidth(self) -> int minimumWidth(self) -> int [extrait de minimumWidth.__doc__]
minimumWidthChanged
modality(self) -> PySide2.QtCore.Qt.WindowModality modality(self) -> PySide2.QtCore.Qt.WindowModality [extrait de modality.__doc__]
modalityChanged
mouseDoubleClickEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseDoubleClickEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseDoubleClickEvent.__doc__]
mouseMoveEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseMoveEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseMoveEvent.__doc__]
mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mousePressEvent.__doc__]
mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) [extrait de mouseReleaseEvent.__doc__]
moveEvent(self, arg__1: PySide2.QtGui.QMoveEvent) moveEvent(self, arg__1: PySide2.QtGui.QMoveEvent) [extrait de moveEvent.__doc__]
nativeEvent(self, eventType: PySide2.QtCore.QByteArray, message: int) -> typing.Tuple[bool, int] nativeEvent(self, eventType: PySide2.QtCore.QByteArray, message: int) -> typing.Tuple[bool, int] [extrait de nativeEvent.__doc__]
objectNameChanged
opacity(self) -> float opacity(self) -> float [extrait de opacity.__doc__]
opacityChanged
parent parent(self) -> PySide2.QtGui.QWindow [extrait de parent.__doc__]
position(self) -> PySide2.QtCore.QPoint position(self) -> PySide2.QtCore.QPoint [extrait de position.__doc__]
raise_(self) raise_(self) [extrait de raise_.__doc__]
reportContentOrientationChange(self, orientation: PySide2.QtCore.Qt.ScreenOrientation) reportContentOrientationChange(self, orientation: PySide2.QtCore.Qt.ScreenOrientation) [extrait de reportContentOrientationChange.__doc__]
requestActivate(self) requestActivate(self) [extrait de requestActivate.__doc__]
requestedFormat(self) -> PySide2.QtGui.QSurfaceFormat requestedFormat(self) -> PySide2.QtGui.QSurfaceFormat [extrait de requestedFormat.__doc__]
requestUpdate(self) requestUpdate(self) [extrait de requestUpdate.__doc__]
resize resize(self, newSize: PySide2.QtCore.QSize) [extrait de resize.__doc__]
resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) [extrait de resizeEvent.__doc__]
screen(self) -> PySide2.QtGui.QScreen screen(self) -> PySide2.QtGui.QScreen [extrait de screen.__doc__]
screenChanged
setBaseSize(self, size: PySide2.QtCore.QSize) setBaseSize(self, size: PySide2.QtCore.QSize) [extrait de setBaseSize.__doc__]
setCursor(self, arg__1: PySide2.QtGui.QCursor) setCursor(self, arg__1: PySide2.QtGui.QCursor) [extrait de setCursor.__doc__]
setFilePath(self, filePath: str) setFilePath(self, filePath: str) [extrait de setFilePath.__doc__]
setFlag(self, arg__1: PySide2.QtCore.Qt.WindowType, on: bool = True) setFlag(self, arg__1: PySide2.QtCore.Qt.WindowType, on: bool = True) [extrait de setFlag.__doc__]
setFlags(self, flags: PySide2.QtCore.Qt.WindowFlags) setFlags(self, flags: PySide2.QtCore.Qt.WindowFlags) [extrait de setFlags.__doc__]
setFormat(self, format: PySide2.QtGui.QSurfaceFormat) setFormat(self, format: PySide2.QtGui.QSurfaceFormat) [extrait de setFormat.__doc__]
setFramePosition(self, point: PySide2.QtCore.QPoint) setFramePosition(self, point: PySide2.QtCore.QPoint) [extrait de setFramePosition.__doc__]
setGeometry setGeometry(self, posx: int, posy: int, w: int, h: int) [extrait de setGeometry.__doc__]
setHeight(self, arg: int) setHeight(self, arg: int) [extrait de setHeight.__doc__]
setIcon(self, icon: PySide2.QtGui.QIcon) setIcon(self, icon: PySide2.QtGui.QIcon) [extrait de setIcon.__doc__]
setKeyboardGrabEnabled(self, grab: bool) -> bool setKeyboardGrabEnabled(self, grab: bool) -> bool [extrait de setKeyboardGrabEnabled.__doc__]
setMask(self, region: PySide2.QtGui.QRegion) setMask(self, region: PySide2.QtGui.QRegion) [extrait de setMask.__doc__]
setMaximumHeight(self, h: int) setMaximumHeight(self, h: int) [extrait de setMaximumHeight.__doc__]
setMaximumSize(self, size: PySide2.QtCore.QSize) setMaximumSize(self, size: PySide2.QtCore.QSize) [extrait de setMaximumSize.__doc__]
setMaximumWidth(self, w: int) setMaximumWidth(self, w: int) [extrait de setMaximumWidth.__doc__]
setMinimumHeight(self, h: int) setMinimumHeight(self, h: int) [extrait de setMinimumHeight.__doc__]
setMinimumSize(self, size: PySide2.QtCore.QSize) setMinimumSize(self, size: PySide2.QtCore.QSize) [extrait de setMinimumSize.__doc__]
setMinimumWidth(self, w: int) setMinimumWidth(self, w: int) [extrait de setMinimumWidth.__doc__]
setModality(self, modality: PySide2.QtCore.Qt.WindowModality) setModality(self, modality: PySide2.QtCore.Qt.WindowModality) [extrait de setModality.__doc__]
setMouseGrabEnabled(self, grab: bool) -> bool setMouseGrabEnabled(self, grab: bool) -> bool [extrait de setMouseGrabEnabled.__doc__]
setOpacity(self, level: float) setOpacity(self, level: float) [extrait de setOpacity.__doc__]
setParent setParent(self, parent: PySide2.QtCore.QObject) [extrait de setParent.__doc__]
setPosition setPosition(self, posx: int, posy: int) [extrait de setPosition.__doc__]
setScreen(self, screen: PySide2.QtGui.QScreen) setScreen(self, screen: PySide2.QtGui.QScreen) [extrait de setScreen.__doc__]
setSizeIncrement(self, size: PySide2.QtCore.QSize) setSizeIncrement(self, size: PySide2.QtCore.QSize) [extrait de setSizeIncrement.__doc__]
setSurfaceType(self, surfaceType: PySide2.QtGui.QSurface.SurfaceType) setSurfaceType(self, surfaceType: PySide2.QtGui.QSurface.SurfaceType) [extrait de setSurfaceType.__doc__]
setTitle(self, arg__1: str) setTitle(self, arg__1: str) [extrait de setTitle.__doc__]
setTransientParent(self, parent: PySide2.QtGui.QWindow) setTransientParent(self, parent: PySide2.QtGui.QWindow) [extrait de setTransientParent.__doc__]
setVisibility(self, v: PySide2.QtGui.QWindow.Visibility) setVisibility(self, v: PySide2.QtGui.QWindow.Visibility) [extrait de setVisibility.__doc__]
setVisible(self, visible: bool) setVisible(self, visible: bool) [extrait de setVisible.__doc__]
setWidth(self, arg: int) setWidth(self, arg: int) [extrait de setWidth.__doc__]
setWindowState(self, state: PySide2.QtCore.Qt.WindowState) setWindowState(self, state: PySide2.QtCore.Qt.WindowState) [extrait de setWindowState.__doc__]
setWindowStates(self, states: PySide2.QtCore.Qt.WindowStates) setWindowStates(self, states: PySide2.QtCore.Qt.WindowStates) [extrait de setWindowStates.__doc__]
setX(self, arg: int) setX(self, arg: int) [extrait de setX.__doc__]
setY(self, arg: int) setY(self, arg: int) [extrait de setY.__doc__]
show(self) show(self) [extrait de show.__doc__]
showEvent(self, arg__1: PySide2.QtGui.QShowEvent) showEvent(self, arg__1: PySide2.QtGui.QShowEvent) [extrait de showEvent.__doc__]
showFullScreen(self) showFullScreen(self) [extrait de showFullScreen.__doc__]
showMaximized(self) showMaximized(self) [extrait de showMaximized.__doc__]
showMinimized(self) showMinimized(self) [extrait de showMinimized.__doc__]
showNormal(self) showNormal(self) [extrait de showNormal.__doc__]
size(self) -> PySide2.QtCore.QSize size(self) -> PySide2.QtCore.QSize [extrait de size.__doc__]
sizeIncrement(self) -> PySide2.QtCore.QSize sizeIncrement(self) -> PySide2.QtCore.QSize [extrait de sizeIncrement.__doc__]
surfaceHandle(self) -> int surfaceHandle(self) -> int [extrait de surfaceHandle.__doc__]
surfaceType(self) -> PySide2.QtGui.QSurface.SurfaceType surfaceType(self) -> PySide2.QtGui.QSurface.SurfaceType [extrait de surfaceType.__doc__]
tabletEvent(self, arg__1: PySide2.QtGui.QTabletEvent) tabletEvent(self, arg__1: PySide2.QtGui.QTabletEvent) [extrait de tabletEvent.__doc__]
title(self) -> str title(self) -> str [extrait de title.__doc__]
touchEvent(self, arg__1: PySide2.QtGui.QTouchEvent) touchEvent(self, arg__1: PySide2.QtGui.QTouchEvent) [extrait de touchEvent.__doc__]
transientParent(self) -> PySide2.QtGui.QWindow transientParent(self) -> PySide2.QtGui.QWindow [extrait de transientParent.__doc__]
transientParentChanged
type(self) -> PySide2.QtCore.Qt.WindowType type(self) -> PySide2.QtCore.Qt.WindowType [extrait de type.__doc__]
unsetCursor(self) unsetCursor(self) [extrait de unsetCursor.__doc__]
Visibility
visibility(self) -> PySide2.QtGui.QWindow.Visibility visibility(self) -> PySide2.QtGui.QWindow.Visibility [extrait de visibility.__doc__]
visibilityChanged
visibleChanged
wheelEvent(self, arg__1: PySide2.QtGui.QWheelEvent) wheelEvent(self, arg__1: PySide2.QtGui.QWheelEvent) [extrait de wheelEvent.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]
widthChanged
windowState(self) -> PySide2.QtCore.Qt.WindowState windowState(self) -> PySide2.QtCore.Qt.WindowState [extrait de windowState.__doc__]
windowStateChanged
windowStates(self) -> PySide2.QtCore.Qt.WindowStates windowStates(self) -> PySide2.QtCore.Qt.WindowStates [extrait de windowStates.__doc__]
windowTitleChanged
winId(self) -> int winId(self) -> int [extrait de winId.__doc__]
x(self) -> int x(self) -> int [extrait de x.__doc__]
xChanged
y(self) -> int y(self) -> int [extrait de y.__doc__]
yChanged

Méthodes héritées de la classe QSurface

__init_subclass__, __subclasshook__, supportsOpenGL, SurfaceClass, surfaceClass, SurfaceType

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, property, receivers, registerUserData, removeEventFilter, sender, senderSignalIndex, setObjectName, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__