summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/code/src_corelib_kernel_qobject.cpp')
-rw-r--r--doc/src/snippets/code/src_corelib_kernel_qobject.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
index 11b70cc1ab..b6d0e39ab0 100644
--- a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
+++ b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp
@@ -470,7 +470,14 @@ QObject::connect(socket, &QTcpSocket::connected, [=] () {
});
//! [46]
+//! [47]
+disconnect(myObject, &MyObject::mySignal(), 0, 0);
+//! [47]
+//! [48]
+QObject::disconnect(lineEdit, &QLineEdit::textChanged,
+ label, &QLabel::setText);
+//! [48]
//! [meta data]
//: This is a comment for the translator.