Thanks for Your answers!
Also with the suggested changes
Qt Code:
  1. FileDownloader *demo = new FileDownloader(histUrl);
  2. mainWidget w;
  3. QObject::connect(demo,SIGNAL(DataA(const QByteArray&)),&w,
  4. SLOT(Receiver(const QByteArray &)));
  5. demo->start();
  6. w.show();
To copy to clipboard, switch view to plain text mode 
the QByteArray is not available in mainwidget.cpp.