[Qt-interest] Problems With tr and operator <<
Aaron Lewis
aaron.lewis1989 at gmail.com
Mon Mar 15 05:04:17 CET 2010
Sorry for sending this mail to all these address. ;-)
Hi , I was reading your book , Qt/C++ Advance Programming.
Part 12.5 , you write a image converter
I rewrited this program , and add some new functions
-snip-
if(ui->colorBox->isChecked())
// arg << tr("-depth
%1").arg(ui->colorComboBox->currentText()); //fails , convert doesn't
recognize '-depth 32'
arg << "-depth" << ui->colorComboBox->currentText(); //
works , don't know why
-snip-
Fist method doesn't work , while the second works , convert program
tells me '-depth 32' is not recognized.
Is there any differences between `tr' and operator `<<' ?
Any ideas will appreciate ;-)
--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list