Hi.
I'm extending QFileDialog with preview support. When user clicked on the graphic file, image must be set to the QLabel. I doing it in new thread because loading big images is slow sometimes.
QPixmap is not supported to creating in new threads. I'm loading file in QPicture:
Qt Code:
  1. QPicture *pic = new QPicture;
  2. pic->load(file);
To copy to clipboard, switch view to plain text mode 
But it returned warning to console:
Qt Code:
  1. QPicturePaintEngine::checkFormat: Incorrect header
To copy to clipboard, switch view to plain text mode 
and file is not loaded.
Can't anybody help me with this problem?

P.S. Sorry for my English.