Hello
I've got error in cmake:

Qt Code:
  1. Error: Undefined interface in line: Q_INTERFACES(QTextObjectInterface)
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include <QObject>
  2. #include <QTextObjectInterface>
  3.  
  4. class ImageHandler : public QObject, public QTextObjectInterface
  5. {
  6. Q_OBJECT
  7. Q_INTERFACES(QTextObjectInterface)
  8. public:
  9. ImageHandler(TextDocument *doc);
  10. QSizeF intrinsicSize(QTextDocument *doc, int posInDoc, const QTextFormat &format);
  11. void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDoc, const QTextFormat &format);
  12.  
  13. private:
  14. QTextObjectInterface *m_defaultImageHandler;
  15.  
  16. };
To copy to clipboard, switch view to plain text mode 

what I must add to cmake ? or into code ?