Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwidgetplatformdialog.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QtGui/qwindow.h>
7#include <QtWidgets/qdialog.h>
8
10
12{
14 dialog->setWindowModality(modality);
15
19 handle->setTransientParent(const_cast<QWindow *>(parent));
20
21 dialog->show();
22 return true;
23}
24
The QDialog class is the base class of dialog windows.
Definition qdialog.h:19
static bool show(QDialog *dialog, Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
void setWindowModality(Qt::WindowModality windowModality)
Definition qwidget.cpp:2799
void createWinId()
Definition qwidget.cpp:2441
void show()
Shows the widget and its child widgets.
Definition qwidget.cpp:7875
QWindow * windowHandle() const
If this is a native widget, return the associated QWindow.
Definition qwidget.cpp:2483
void setWindowFlags(Qt::WindowFlags type)
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
WindowModality
GLuint64 GLenum void * handle
GLbitfield flags
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
QFileDialog dialog(this)
[1]