> > > Also, just so you know, you can convert a QString to a C string using the
> > > following:
> > >
> > > string.toUtf8().constData()
> >
> > Awesome! How bloody obvious. Silly me for not seeing that immediately ;-)
>
> I think it all comes from them trying supporting UTF across platforms. You
> need a temporary object representing just some bytes.
Yeah. I was commenting on the really awkward and counter-intuitive API. Would be nice have something like string.c_str() or similar.
> > > Also, just so you know, you can convert a QString to a C string using the toUtf8( ).constData( )
> > > following:
> > >
> > > string.
> >
> > Awesome! How bloody obvious. Silly me for not seeing that immediately ;-)
>
> I think it all comes from them trying supporting UTF across platforms. You
> need a temporary object representing just some bytes.
Yeah. I was commenting on the really awkward and counter-intuitive API. Would be nice have something like string.c_str() or similar.