Welcome!
Log In
Create A New Profile
Home
>
COS2614
> Topic
Advanced
Copying QString data to Integer type
Posted by
tlaks
Announcements
Last Post
SoC Curricula
09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment
02/13/2017 07:59AM
School of Computing Short Learning Programmes
11/24/2014 08:37AM
Unisa contact information
07/28/2011 01:28PM
Forums
Messages
New
tlaks
Copying QString data to Integer type
February 27, 2014 02:02PM
Registered: 14 years ago
Posts: 2
Rating: 0
Hi,
I'm battling to copy the contents of a QString, which has numeric data to an integer type. How do I accomplish this without converting.
Reply
Quote
bigron11
Re: Copying QString data to Integer type
March 01, 2014 01:26PM
Admin
Registered: 11 years ago
Posts: 6,606
Rating: 396
Use toInt();
Language: C++
int
myint
=
mystring.
toInt
(
)
;
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login