summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qplugin.qdoc
blob: d9b627e6bf9a1c16d2e2e79e917e8497b9a49707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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]