summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/richtext/textobject/window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/richtext/textobject/window.cpp b/examples/richtext/textobject/window.cpp
index 402226a..bf14303 100644
--- a/examples/richtext/textobject/window.cpp
+++ b/examples/richtext/textobject/window.cpp
@@ -86,6 +86,7 @@ void Window::insertTextObject()
void Window::setupTextObject()
{
QObject *svgInterface = new SvgTextObject;
+ svgInterface->setParent(this);
textEdit->document()->documentLayout()->registerHandler(SvgTextFormat, svgInterface);
}
//![3]