Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later
Accepted Solution

Send Parameter via a slot

try
						{
							QNetworkRequest request = QNetworkRequest();
							QString s1 = map["IMAGE"].toString();
							request.setUrl(QUrl(s1));
							request.setAttribute(QNetworkRequest::CacheLoadControlAttribute,
									QNetworkRequest::AlwaysNetwork);
							QNetworkAccessManager* nam = new QNetworkAccessManager(this);
							bool result = connect(nam, SIGNAL(finished(QNetworkReply*)), this,
									SLOT(onImageLoaded(QNetworkReply*, map)));
							Q_ASSERT(result);
							Q_UNUSED(result);
							nam->get(request);
						}
						catch(...)
						{

						}

 

 

the bolded part, how can I send the map as paremeter? as I will modify on it certaing things once i get certain data ....

 

 

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Send Parameter via a slot

You can't, you would have to make it available to the slot some other way. You could make it available throughout the class, or set a reference to it as a property on the QNetworkReply.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker