I want to make a downloader by Qt. I hava a problem when I use QSignalMapper.
There is a signal in QNetworkReply, downloadProgress(qint64,qint64) I hava many download task, so I use QSignalMapper to process the signal. But how can I pass (qint64,qint64) to my own function?
I pass the id to my slot, but I loss (qint64,qint64)
connect(t->reply, SIGNAL(downloadProgress(qint64,qint64)), signalMapper, SLOT(map()));
signalMapper->setMapping(t->reply, id);
How to solve it?