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
New Developer
Posts: 14
Registered: ‎05-28-2014
My Device: No Device
My Carrier: Idea

How to convert a QtSoapArray to QStringList

Hi All,

I am new to BlackBerry development, How can i convert a QtSoapArray to QStringList

Here is my Blogs About Android Development. Please read and share it. http://startandroiddevelopment.blogspot.in/2013/08/how-to-start-android-development.html
Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to convert a QtSoapArray to QStringList

Here is a sample from my code. soapStruct is a QtSoapStruct retrieved with method() from the response.

QtSoapArray &attributes = (QtSoapArray &) soapStruct["Attributes"];
for (int i = 0; i < attributes.count(); ++i) {
	QtSoapStruct item = (QtSoapStruct&) attributes[i];
	QString attributeName = item["Attributename"].toString().toLower();
	QString objectName = item["Objectname"].toString();
	QString objectValue = item["Value"].toString();

 

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter