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
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Request Price Loop?

I'm looping through my skus and I am then requesting each ones price. The problem is, only the last one in the loop comes back with a price.

 

Is there soemthing wrong with my code? I've checked that the loop is running through correctly, below is the code the loop calls each time:

 

PriceReply *reply = paymentManager->requestPrice(id, sku);
bool res = QObject::connect(reply, SIGNAL(finished()),SLOT(priceResponse()));
Q_ASSERT(res);
Q_UNUSED(res);

 Thanks

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone