PythonQt.QtGui.QDialog · declarations 001
Back to PythonQt.QtGui.QDialog
accept
accept() -> None
X.accept()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QDialog::accept()
Hides the modal dialog and sets the result code to Accepted.
Upstream PySide2 reference signatures (binding differences may apply):
accept(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#accept
accepted
accepted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.accepted; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDialog::accepted()
This signal is emitted when the dialog has been accepted either by the user or by calling accept() or done() with the QDialog::Accepted argument.
Note that this signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.
This function was introduced in Qt 4.1.
See also finished() and rejected().
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#accepted
adjustPosition
adjustPosition(arg__1: Any) -> None
X.adjustPosition(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
adjustPosition(self, arg__1: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#adjustPosition
closeEvent
closeEvent(arg__1: Any) -> None
X.closeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDialog::closeEvent(QCloseEvent *e)
Reimplements: QWidget::closeEvent(QCloseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
closeEvent(self, arg__1: PySide2.QtGui.QCloseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#closeEvent
contextMenuEvent
contextMenuEvent(arg__1: Any) -> None
X.contextMenuEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDialog::contextMenuEvent(QContextMenuEvent *e)
Reimplements: QWidget::contextMenuEvent(QContextMenuEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
contextMenuEvent(self, arg__1: PySide2.QtGui.QContextMenuEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#contextMenuEvent
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.customContextMenuRequested; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.destroyed; argument details are not documented.
done
done(arg__1: int) -> None
X.done(arg__1)
Supplemental documentation: Qt 5 reference:
[virtual slot] void QDialog::done(int r)
Closes the dialog and sets its result code to r. The finished() signal will emit r; if r is QDialog::Accepted or QDialog::Rejected, the accepted() or the rejected() signals will also be emitted, respectively.
If this dialog is shown with exec(), done() also causes the local event loop to finish, and exec() to return r.
As with QWidget::close(), done() deletes the dialog if the Qt::WA_DeleteOnClose flag is set. If the dialog is the application's main widget, the application terminates. If the dialog is the last window closed, the QApplication::lastWindowClosed() signal is emitted.
See also accept(), reject(), QApplication::activeWindow(), and QCoreApplication::quit().
Upstream PySide2 reference signatures (binding differences may apply):
done(self, arg__1: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#done
eventFilter
eventFilter(arg__1: Any, arg__2: Any) -> bool
X.eventFilter(arg__1, arg__2) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QDialog::eventFilter(QObject *o, QEvent *e)
Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
eventFilter(self, arg__1: PySide2.QtCore.QObject, arg__2: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#eventFilter
exec
exec() -> int
X.exec() -> int
Supplemental documentation: Qt 5 reference:
[virtual slot] int QDialog::exec()
Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.
If the dialog is application modal, users cannot interact with any other window in the same application until they close the dialog. If the dialog is window modal, only interaction with the parent window is blocked while the dialog is open. By default, the dialog is application modal.
Note: Avoid using this function; instead, use open(). Unlike exec(),
open() is asynchronous, and does
not spin an additional event loop. This prevents a series of dangerous bugs from
happening (e.g. deleting the dialog's parent while the dialog is open via exec()). When
using open() you can connect to
the finished() signal of
QDialog to be notified when the
dialog is closed.
See also open(), show(), result(), and setWindowModality().
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#exec
finished
finished(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.finished; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDialog::finished(int result)
This signal is emitted when the dialog's result code has been set, either by the user or by calling done(), accept(), or reject().
Note that this signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.
This function was introduced in Qt 4.1.
See also accepted() and rejected().
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#finished
isSizeGripEnabled
isSizeGripEnabled() -> bool
X.isSizeGripEnabled() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isSizeGripEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#isSizeGripEnabled
keyPressEvent
keyPressEvent(arg__1: Any) -> None
X.keyPressEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDialog::keyPressEvent(QKeyEvent *e)
Reimplements: QWidget::keyPressEvent(QKeyEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
keyPressEvent(self, arg__1: PySide2.QtGui.QKeyEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#keyPressEvent
minimumSizeHint
instance-attribute
minimumSizeHint: QSize
Qt 5 reference:
[override virtual] QSize QDialog::minimumSizeHint() const
Reimplements an access function for property: QWidget::minimumSizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#minimumSizeHint
modal
instance-attribute
modal: Any
Qt 5 reference:
modal : bool
This property holds whether show() should pop up the dialog as modal or modeless
By default, this property is false and
show() pops up the dialog as
modeless. Setting this property to true is equivalent to setting
QWidget::windowModality
to
Qt::ApplicationModal.
exec() ignores the value of this property and always pops up the dialog as modal.
Access functions:
| bool | isModal() const |
|---|---|
| void | setModal(bool modal) |
See also QWidget::windowModality, show(), and exec().
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#modal
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.objectNameChanged; argument details are not documented.
open
open() -> None
X.open()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QDialog::open()
Shows the dialog as a window modal dialog, returning immediately.
This function was introduced in Qt 4.5.
See also exec(), show(), result(), and setWindowModality().
Upstream PySide2 reference signatures (binding differences may apply):
open(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#open
reject
reject() -> None
X.reject()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QDialog::reject()
Hides the modal dialog and sets the result code to Rejected.
Upstream PySide2 reference signatures (binding differences may apply):
reject(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#reject
rejected
rejected(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.rejected; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDialog::rejected()
This signal is emitted when the dialog has been rejected either by the user or by calling reject() or done() with the QDialog::Rejected argument.
Note that this signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.
This function was introduced in Qt 4.1.
See also finished() and accepted().
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#rejected
resizeEvent
resizeEvent(arg__1: Any) -> None
X.resizeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDialog::resizeEvent(QResizeEvent *)
Reimplements: QWidget::resizeEvent(QResizeEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#resizeEvent
result
result() -> int
X.result() -> int
Supplemental documentation: Qt 5 reference:
int QDialog::result() const
In general returns the modal dialog's result code, Accepted or Rejected.
Note: When called on a QMessageBox instance, the returned value is a value of the QMessageBox::StandardButton enum.
Do not call this function if the dialog was constructed with the Qt::WA_DeleteOnClose attribute.
See also setResult().
Upstream PySide2 reference signatures (binding differences may apply):
result(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#result
setModal
setModal(modal: bool) -> None
X.setModal(modal)
Upstream PySide2 reference signatures (binding differences may apply):
setModal(self, modal: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#setModal
setResult
setResult(r: int) -> None
X.setResult(r)
Supplemental documentation: Qt 5 reference:
void QDialog::setResult(int i)
Sets the modal dialog's result code to i.
Note: We recommend that you use one of the values defined by QDialog::DialogCode.
See also result().
Upstream PySide2 reference signatures (binding differences may apply):
setResult(self, r: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#setResult
setSizeGripEnabled
setSizeGripEnabled(arg__1: bool) -> None
X.setSizeGripEnabled(arg__1)
Upstream PySide2 reference signatures (binding differences may apply):
setSizeGripEnabled(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#setSizeGripEnabled
setVisible
setVisible(visible: bool) -> None
X.setVisible(visible)
Supplemental documentation: Qt 5 reference:
[override virtual] void QDialog::setVisible(bool visible)
Reimplements an access function for property: QWidget::visible.
Upstream PySide2 reference signatures (binding differences may apply):
setVisible(self, visible: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#setVisible
showEvent
showEvent(arg__1: Any) -> None
X.showEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QDialog::showEvent(QShowEvent *event)
Reimplements: QWidget::showEvent(QShowEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
showEvent(self, arg__1: PySide2.QtGui.QShowEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#showEvent
showExtension
showExtension(a: Any) -> None
X.showExtension(a)
Upstream PySide2 reference signatures (binding differences may apply):
showExtension(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#showExtension
sizeGripEnabled
instance-attribute
sizeGripEnabled: Any
Qt 5 reference:
sizeGripEnabled : bool
This property holds whether the size grip is enabled
A QSizeGrip is placed in the bottom-right corner of the dialog when this property is enabled. By default, the size grip is disabled.
Access functions:
| bool | isSizeGripEnabled() const |
|---|---|
| void | setSizeGripEnabled(bool) |
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#sizeGripEnabled
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QDialog::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qdialog.html#sizeHint
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialog.windowTitleChanged; argument details are not documented.