[Interest] Looks like a bug to me.

william.crocker at analog.com william.crocker at analog.com
Mon Jun 5 14:04:28 CEST 2017

> For the second one, consider that after arg(d) is executed, the input string to arg(a) is "B: %41".  Since 41 is now "the lowest numbered place marker", "XXX" gets substituted.  It is easy to mistakenly think that QString magically treats multiple .args as somehow being indexed.  I think the documentation for QString.arg should warn about your example, and the case when substituted strings contain %<number>.

Yes. I see now.
Maybe a little too convenient.


More information about the Interest mailing list