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]