Hello (No, this is not spam):

For me, the following:

  QString a = "XXX";
  QString b = "";
  QString c = "";
  QString d = "1";
  qDebug() << QString("A: %1%2%3%4") .arg(a) .arg(b) .arg(c) .arg(d);
  qDebug() << QString("B: %4%1%2%3") .arg(b) .arg(c) .arg(d) .arg(a);

prints this:

  "A: XXX1"                           # As expected.
  "B: XXX"                            # Expected: XXX1.

I think the 'B:' line demonstrates a bug.
Where is the '1'?

Qt 5.7
RedHat Enterprise Linux 6.8
gcc: 4.9.3

Bill

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to