[Qt-interest] Howto get default carriage return ?

Aaron Lewis the.warl0ck.1989 at gmail.com
Fri Oct 22 09:01:17 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks , it's already set.

Actually all those strings came from QListWidget , and all line endings
removed , files are opened as

 (QIODevice::Append | QIODevice::Text)

So if i append those strings , on line-endings will be written.

How can i handle this ?

P.S: file format looks like:

str
str1
str2str3	// if append str3 directly ,
		// so i should put an endings before actual actions.


On 10/22/2010 01:49 AM, Thiago Macieira 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.
> 
> 
> 
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest


- -- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E
Key Server: http://keyserver.veridis.com
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E

No HTML shits , thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMwTa8AAoJECSSp9Df5sKeq3kP/RnCA3BLCFgytc+S7BEuvVWs
FN7udydz+1PaXCPP8IX5FjjbKOofylaNBnDYCuY5q8aGrIVL0b1ODZLx1S9MPsJm
8s072b+dCNipaAkWEZqv4Fp18rrbxq4mmSuNDHmE+5zMaYq1oKCimoT/n14vSuWN
WriXMBy6EQFakOz/J9no1Uij+ivGR3pDK3wt0wmJkqPy15HB5+Um6yeuCaoYMxYY
Ygos3UcMTMAWjeK8H3C2kw34NRml1GIkeJ0O74AD3ywbrBOsCQXJHh6Rovb1kaLQ
i4XeInwKuxI+KzeK9oVvk7q1u3nUY4SvdduoIgVdYMDGgrk5fuGkx2rZZwd6CtUw
B8T9YrmghL2HyCKABNMPwUDUtlxTVnPwYSjjiy0KNqi+agk3qRW3LTvY21ekYBHf
l7LK0enE/UeZ7kE8zfwCpEuLTxiFTKk5xmQMGLvlOlMc/iIy6brDkccUcigUZgcO
KCVVZFZRcZxzmf+PqxeUR+y9BBFxlbyKn6obsJP9W1N9lMhQPd+1xAclx90iwFFA
xyzFRVGZX0kiVF2cdcWY6HwX/4GdhkJchMFewqHpDb91pB4Wq/kUIgsRSr15VUmE
Wp7GAcOEl/1CN7RTDh9Ug9O7dODyOBqPR1At/Fyk4oTUKnBpcpRczD9aLEt+J5oS
b39cf/kf7RELZjPvIq3i
=QyGJ
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list