ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
Loading...
Searching...
No Matches
qmlcolorpicker.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2020-2025 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef QMLCOLORPICKER_H
9#define QMLCOLORPICKER_H
10#include "colorpicker.h"
11
12#include <QObject>
13#include <imodel.h>
14
15namespace ViewSolutions {
16
31class VIEWSOLUTION_EXPORT QMLColorPicker : public QObject, public iModel, private ColorPicker
32{
33 Q_OBJECT
34public:
35 explicit QMLColorPicker(QObject *parent = nullptr);
36
37
43 Q_INVOKABLE QColor pick(const QString &img) const;
44
49 QString modelId() const override;
50
51};
52
53}
54#endif // QMLCOLORPICKER_H
QMLColorPicker(QObject *parent=nullptr)
QString modelId() const override
modelId This method returns the model id of the QMLColorPicker.
Q_INVOKABLE QColor pick(const QString &img) const
pick This is override function for qml.
The ViewSolutions namespace.
#define VIEWSOLUTION_EXPORT
VIEWSOLUTION_EXPORT marks a symbol as part of the public ViewSolutions API.