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
qioscolordialog.h
Go to the documentation of this file.
1// Copyright (C) 2022 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
4#ifndef QIOSCOLORDIALOG_H
5#define QIOSCOLORDIALOG_H
6
7#include <QtCore/qeventloop.h>
8#include <qpa/qplatformdialoghelper.h>
9
11
13
15{
16public:
19
20 void exec() override;
21 bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
22 void hide() override;
23
24 void setCurrentColor(const QColor&) override;
25 QColor currentColor() const override;
26
27 void updateColor(const QColor&);
28
29private:
30 QEventLoop m_eventLoop;
31 QIOSColorDialogController *m_viewController;
32 QColor m_currentColor;
33};
34
36
37#endif // QIOSCOLORDIALOG_H
38
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qeventloop.h:16
void setCurrentColor(const QColor &) override
void exec() override
QColor currentColor() const override
void hide() override
void updateColor(const QColor &)
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPlatformColorDialogHelper class allows for platform-specific customization of color dialogs.
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
WindowModality
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
view show()
[18] //! [19]