[Qt-interest] Howto get default carriage return ?

Thiago Macieira thiago at kde.org
Thu Oct 21 19:49:59 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101021/1002a9d6/attachment.bin 


More information about the Qt-interest-old mailing list