Hello, I am developing windows desktop application during my part-time. Now I have a problem which puzzled me for one week.
I can get the camera data from the registered callback function to SDK. Pseudocode show below:
Qt Code:
  1. List imageList;//thread safe list
  2. void (int width, int height, void* data)
  3. {
  4. //here I can get the image data, and according to camera fsp N,
  5. //imageList can get N images per second, act as provider
  6. imageList.push(QImage(data));
  7. }
  8.  
  9. //I use QLabel or QOpenGLWidget to display those images
  10. class QMyLabel : public QLabel
  11. {
  12. void paintEvent(QPaintEvent * event)
  13. {
  14. QImage img = imageList.pop();
  15. painter.drawImage(img);
  16. }
  17.  
  18. QTimer timer = new QTimer(this);
  19. connect(timer, SIGNAL(timeout()), this, SLOT(update()));
  20. timer.start(60 / N);
  21. }
To copy to clipboard, switch view to plain text mode 

But it display frame by frame, not smoothly. I have used std::share_ptr and std::move to avoid copy, but still can't fix it.
I Googled it but can't find a solution? Could anyone can give some tips?