summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qplugin.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/code/doc_src_qplugin.qdoc')
-rw-r--r--doc/src/snippets/code/doc_src_qplugin.qdoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/src/snippets/code/doc_src_qplugin.qdoc b/doc/src/snippets/code/doc_src_qplugin.qdoc
new file mode 100644
index 0000000..d9b627e
--- /dev/null
+++ b/doc/src/snippets/code/doc_src_qplugin.qdoc
@@ -0,0 +1,24 @@
+//! [0]
+namespace Foo
+{
+ struct MyInterface { ... };
+}
+
+Q_DECLARE_INTERFACE(Foo::MyInterface, "org.examples.MyInterface")
+//! [0]
+
+
+//! [1]
+Q_EXPORT_PLUGIN2(pnp_extrafilters, ExtraFiltersPlugin)
+//! [1]
+
+
+//! [2]
+Q_IMPORT_PLUGIN(qjpeg)
+//! [2]
+
+
+//! [3]
+TEMPLATE = app
+QTPLUGIN += qjpeg qgif qmng # image formats
+//! [3]