Can someone explain this
This works
Qt Code:
  1. QString usage = "12.34 56.78";
  2. QStringList usage2 = usage.split(" ");
  3. foreach (QString str, usage2) {
  4. qDebug() << str;
  5. }
To copy to clipboard, switch view to plain text mode 
This works
Qt Code:
  1. float used = usage2[0].toFloat();
To copy to clipboard, switch view to plain text mode 
This does not work
Qt Code:
  1. float used = usage2[1].toFloat();
To copy to clipboard, switch view to plain text mode