Qt Code:
  1. for (int i = 0; i < centerPointsList.size (); i++)
  2. {
  3. QVariant holdInformation = map->page ()->mainFrame ()->evaluateJavaScript (QString ("constructFileName (%1).arg (centerPointsList[0].toFloat())"));
  4. QList <QVariant> allListObj = holdInformation.toList ();
  5. QList <QVariant> fileNamesList = allListObj[0].toList ();
  6.  
  7. std :: cout << fileNamesList[0].toFloat() << "================= \n";
  8.  
  9. }
To copy to clipboard, switch view to plain text mode 

This results in:
"SyntaxError: Parse error on line:1 Source:undefined"
Segmentation fault
I am guessing that the error is in the way I am passing the list item to the function evaluateJavaScript.