[kde-edu]: Reading int from a string

Kevin Krammer kevin.krammer at gmx.at
Wed May 4 09:30:52 CEST 2005

On Wednesday 04 May 2005 03:46, Andreas Nicolai wrote:

> The problem is that after reading the last triple the stream is no longer
> "good" (it has the state atEnd()) even though the last triple was
> successfully read. All trials to read the state from the IO_device have
> failed so far. Does anyone know how to solve this problem?

I'd use QStringList to split the string into each number and then 
QString::toInt on each part to convert to int

Btw, you are posting this question under a totally unrelated thread

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-edu/attachments/20050504/c4f049f6/attachment.pgp

More information about the kde-edu mailing list