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
src_gui_itemviews_qitemeditorfactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5Q_PROPERTY(QColor color READ color WRITE setColor USER true)
7
8
9
11 new QItemEditorCreator<MyEditor>("myProperty");
12
15
16
23
24QItemEditorFactory::setDefaultFactory(editorFactory);
26
27
29Q_PROPERTY(QColor color READ color WRITE setColor USER true)
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore\reentrant
Definition qdatetime.h:283
The QItemEditorCreatorBase class provides an abstract base class that must be subclassed when impleme...
The QItemEditorCreator class makes it possible to create item editor creator bases without subclassin...
The QItemEditorFactory class provides widgets for editing item data in views and delegates.
\inmodule QtCore
Definition qmetatype.h:341
The QStandardItemEditorCreator class provides the possibility to register widgets without having to s...
GLuint color
[2]
#define Q_PROPERTY(...)
myFilter setColor(QColor(128, 0, 0))
QItemEditorFactory * editorFactory
[1]
QItemEditorCreatorBase * creator
editorFactory registerEditor(QMetaType::QDateTime, creator)
QItemEditorFactory * factory
QItemEditorCreator< MyEditor > * itemCreator
[0]