[Qt-interest] [SOLVE] Re: argv & utf-8 code
Aaron Lewis
aaron.lewis1989 at gmail.com
Mon Aug 2 08:54:17 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> QStringList args = qApp->arguments();
@ Makshin
Ah , that's the `standard' way of handling arguments , well , i would
use it like
if(argc > 1)
for (int i = 1; i < args.count(); ++i)
w.readFileToBuffer(args.at(i));
@ Thiago
That's the problem , i should declare my encoding in my applications.
Thanks
- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxWa5gACgkQvf41sEptMqDpmQCcCJwTYoHJefDKPFch9FEs6CLm
Jz0AnRl0sgJXOcz7JQY+3w3dWeWpv22G
=1khn
-----END PGP SIGNATURE-----
More information about the Qt-interest-old
mailing list