[Qt-interest] Howto get default carriage return ?
Dan White
ygor at comcast.net
Thu Oct 21 20:08:11 CEST 2010
How about QChar::LineSeparator from enum QChar::SpecialCharacter ?
<http://doc.qt.nokia.com/4.7/qchar.html#SpecialCharacter-enum>
Will that work ?
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- Thiago Macieira <thiago at kde.org> wrote:
> Em Quinta-feira 21 Outubro 2010, às 10:47:52, Aaron Lewis escreveu:
> > Hi,
> > Is it possible to fetch default line separator with Qt's function
> > rather than some macros targeted for different OS ?
> >
> > Sth. similar to QDir::separator() ? Like linux uses carriage , and
> > windows should be carriage & return ?
>
> Set the QIODevice::Text flag on your QIODevice and it will use CRLF where
> appropriate.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
More information about the Qt-interest-old
mailing list