Skip to content

Commit 3369a18

Browse files
Enable QQuickTextDocument* to be used as a property in QML
Add a meta type registration for the pointer type. Complements ad51ac7. Pick-to: 6.10 6.8 Fixes: PYSIDE-3213 Change-Id: I4c3cc374c1721b26f3924821f94b0c4e48a97aa5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
1 parent 9812b91 commit 3369a18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/pyside6/PySide6/QtQuick/pysidequickregistertype.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <sbkpep.h>
1212

1313
#include <QtQuick/QQuickPaintedItem>
14+
#include <QtQuick/QQuickTextDocument>
1415

1516
#if QT_CONFIG(opengl) || QT_CONFIG(opengles2) || QT_CONFIG(opengles3)
1617
# include <QtQuick/QQuickFramebufferObject>
@@ -73,6 +74,7 @@ void PySide::initQuickSupport(PyObject *module)
7374
qRegisterMetaType<QQuickFramebufferObject*>("QQuickFramebufferObject*");
7475
#endif
7576
qRegisterMetaType<QQuickItem*>("QQuickItem*");
77+
qRegisterMetaType<QQuickTextDocument*>("QQuickTextDocument*");
7678

7779
Qml::setQuickRegisterItemFunction(quickRegisterType);
7880
}

0 commit comments

Comments
 (0)