hello.

i look at the example "imagescaling" and done some upgrade.

well:

image.h (image.cpp has all the implementation)
Qt Code:
  1. class ImageData
  2. {
  3. //... some data for the image size and path
  4. }
  5.  
  6. class MyImage: public QWidget, public ImageData
  7. {
  8. // some function for working with images
  9. }
To copy to clipboard, switch view to plain text mode 
Then I have another class for working with all loaded images.

imagelist.h
Qt Code:
  1. class MyLsit:public QWidget
  2. {
  3. //...
  4. }
To copy to clipboard, switch view to plain text mode 

imageList.cpp
Qt Code:
  1. // my function for loading image
  2. MyImage loadImage(const ImageData &data)
  3. {
  4. MyImage m;
  5. //... things to do on loading images
  6. return m;
  7. }
  8.  
  9. void MyList::FirstStep()
  10. {
  11. QList<ImageData> datalist;
  12. // load data
  13. collection= new QFutureWatcher<Image>((QObject*)this);
  14. collection->setFuture(QtConcurrent::mapped(datalist,loadImage));
  15. // etc
  16. }
To copy to clipboard, switch view to plain text mode 

when I compile the project it returns the error:
/usr/lib64/qt-4.4.1/include/QtGui/qwidget.h: In copy constructor ‘MyImage::MyImage(const MyImage&)’:
/usr/lib64/qt-4.4.1/include/QtGui/qwidget.h:750: error: ‘QWidget::QWidget(const QWidget&)’ is private
../qt4/Tools/ShowImg/image.h:18: error: within this context
../qt4/Tools/imgsched.cpp: In function ‘Image LoadImage(ImageData&)’:
../qt4/Tools/imgsched.cpp:12: note: synthesized method ‘MyImage::MyImage(const MyImage&)’ first required here
if I change MyImage with QImage:
Qt Code:
  1. QImage loadImage(const ImageData &data){...}
To copy to clipboard, switch view to plain text mode 
it compiles.

I think this is an C++ feature, but i can not work it out.
Any suggestion on how to implement this would be appreciate.
thx!