Object Detection  5.0
Image Processing Using Qt and Opencv
cvvideocaptureplugin.h
1 #ifndef CVVIDEOCAPTUREPLUGIN_H
2 #define CVVIDEOCAPTUREPLUGIN_H
3 
4 #include <QDesignerCustomWidgetInterface>
5 
6 class CVVideoCapturePlugin : public QObject, public QDesignerCustomWidgetInterface
7 {
8  Q_OBJECT
9  Q_INTERFACES(QDesignerCustomWidgetInterface)
10 #if QT_VERSION >= 0x050000
11  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
12 #endif // QT_VERSION >= 0x050000
13 
14 public:
15  CVVideoCapturePlugin(QObject *parent = 0);
16 
17  bool isContainer() const;
18  bool isInitialized() const;
19  QIcon icon() const;
20  QString domXml() const;
21  QString group() const;
22  QString includeFile() const;
23  QString name() const;
24  QString toolTip() const;
25  QString whatsThis() const;
26  QWidget *createWidget(QWidget *parent);
27  void initialize(QDesignerFormEditorInterface *core);
28 
29 private:
30  bool m_initialized;
31 };
32 
33 #endif