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
Contributor
Posts: 20
Registered: ‎09-12-2012
My Device: Developer
My Carrier: Docomo
Accepted Solution

How to convert QString into integer

here i want to make some calculation on the user input so iam takeing user input using textfield using text() function but it was returning QString then how to convert QString to integer

Developer
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
My Carrier: Developper

Re: How to convert QString into integer

[ Edited ]

Hi, did you try toInt() ?

 

http://doc.qt.digia.com/latest/qstring.html#toInt

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr