it returns true but is really strange, the image is there

Quote Originally Posted by wysota View Post
Did you reimplement the paint event for your widget? Does the class contain Q_OBJECT macro?
Hi Wysota yes this is the class:

Qt Code:
  1. class ImageRenderer : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. ImageRenderer(QWidget* parent=0);
  7. ~ImageRenderer();
  8.  
  9. void setImage(IplImage*);
  10.  
  11. public slots:
  12. QImage IplImageToQImage(const IplImage* iplImage);
  13.  
  14. protected:
  15. /* paint event */
  16. virtual void paintEvent( QPaintEvent* event );
  17.  
  18. private:
  19. QPixmap m_pixmap;
  20. IplImage* m_frame;
  21.  
  22. /* OpenCV -> Qt */
  23. QImage* m_qImage;
  24. unsigned char* m_qImageBuffer;
  25. };
  26.  
  27. #endif //#ifndef _IMAGERENDERER_H_
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by Lykurg View Post
Sure you have the uri right? what is the output of
Qt Code:
  1. QPixmap p(":/resources/images/logo.jpg");
  2. qWarning() << p.isNull();
To copy to clipboard, switch view to plain text mode 
Or you don't have loaded the jpeg support. Try to set a png image for testing.
I also converted to png and nothing