Sets systemMenu as the current system menu for this ![]() The systemMenu argument has it's ownership transferred to Qt. If on is true, option is enabled on the subwindow tKeyboardPageStep ( self, int step) tKeyboardSingleStep ( self, int step) tOption ( self, SubWindowOption option, bool on = True) Reimplemented from QWidget.resizeEvent(). QMdiSubWindow.resizeEvent ( self, QResizeEvent resizeEvent) QMdiSubWindow.paintEvent ( self, QPaintEvent paintEvent) QMdiSubWindow.moveEvent ( self, QMoveEvent moveEvent) ![]() Reimplemented from QWidget.mouseReleaseEvent(). QMdiSubWindow.mouseReleaseEvent ( self, QMouseEvent mouseEvent) Reimplemented from QWidget.mousePressEvent(). QMdiSubWindow.mousePressEvent ( self, QMouseEvent mouseEvent) Reimplemented from QWidget.mouseMoveEvent(). QMdiSubWindow.mouseMoveEvent ( self, QMouseEvent mouseEvent) Reimplemented from QWidget.mouseDoubleClickEvent(). QMdiSubWindow.mouseDoubleClickEvent ( self, QMouseEvent mouseEvent) Reimplemented from QWidget.minimumSizeHint(). QSize QMdiSubWindow.minimumSizeHint ( self) Returns the area containing this sub-window, or 0 if there is QMdiSubWindow.leaveEvent ( self, QEvent leaveEvent) Reimplemented from QWidget.keyPressEvent(). int QMdiSubWindow.keyboardPageStep ( self) int QMdiSubWindow.keyboardSingleStep ( self) QMdiSubWindow.keyPressEvent ( self, QKeyEvent keyEvent) Returns true if this window is shaded otherwise returnsĪ window is shaded if it is collapsed so that only the title bar QMdiSubWindow.hideEvent ( self, QHideEvent hideEvent) Reimplemented from QWidget.focusOutEvent(). QMdiSubWindow.focusOutEvent ( self, QFocusEvent focusOutEvent) Reimplemented from QWidget.focusInEvent(). QMdiSubWindow.focusInEvent ( self, QFocusEvent focusInEvent) Reimplemented from QObject.eventFilter(). bool QMdiSubWindow.eventFilter ( self, QObject object, QEvent event) bool QMdiSubWindow.event ( self, QEvent event) ntextMenuEvent ( self, QContextMenuEvent contextMenuEvent) QMdiSubWindow.closeEvent ( self, QCloseEvent closeEvent) QMdiSubWindow.childEvent ( self, QChildEvent childEvent) Reimplemented from QWidget.changeEvent(). QMdiSubWindow.changeEvent ( self, QEvent changeEvent) QTextEdit editor(&mdiArea) // invalid child widget Instead of using addSubWindow(), it is also simply possible to The parent and flags arguments are passed to The parent argument, if not None, causes self to be owned by Qt instead of PyQt. Method Documentation QMdiSubWindow._init_ ( self, QWidget parent = None, Qt.WindowFlags flags = 0) The SubWindowOptions type is a typedef for QFlags. Has completed, at which time a QMoveEvent is sent to the window. Subwindow remains in its original position until the move operation Moves this instead of the subwindow itself. Operation has been completed, at which time it will receive a Subwindow maintains its original position and size until the resize Resizes this instead of the subwindow itself. This enum describes options that customize the behavior ofĬontrol is used to represent the subwindow's outline, and the user Type Documentation QMdiSubWindow.SubWindowOption Note that these shortcuts overrides global shortcuts, but not the This is equivalent to calling activateNextSubWindow() By pressing control, shift, and tab, you will activate The current WindowOrder) subwindow will beĪctivated. Pressing the control and tab keys at the same time, the next (using You can also change the active window with the keyboard. When shift is pressed down page step is used Properties control the distance the widget is moved or resized forĮach keypress event. You can enter this mode through the system menu In keyboard-interactive mode, the windows are moved and resized Signal whenever the window state has changed (e.g., when the windowīecomes minimized, or is restored). The window is collapsed so that only the title bar is visible). Theįunction detects whether the subwindow is currently shaded (i.e., Outline of a subwindow is updated during these operations. Transparent window movement and resizing behavior, where only the Viewport when moved around, but it is also possible to specify QMdiSubWindow also supports behavior specific to subwindows inīy default, each QMdiSubWindow is visible inside the MDI area Show(), hide(), showMaximized(), and setWindowTitle()). Regular top-level windows (e.g., you can call functions such as You use the same API when programming with subwindows as with Subwindow yourself, and set an internal widget by calling setWidget(). With the internal widget as the argument. The most common way to construct a QMdiSubWindow is to call Its own layout, which consists of the title bar and a center area Window decorations, an internal widget, and (depending on theĬurrent style) a window frame and a size grip. ![]() QMdiSubWindow represents a top-level window in a QMdiArea, and consists of a title bar with The QMdiSubWindow class provides a subwindow class for QMdiArea. Void windowStateChanged (Qt::WindowStates,Qt::WindowStates)
0 Comments
Leave a Reply. |