for (int i = 0; i < centerPointsList.size (); i++)
{
QVariant holdInformation
= map
->page
()->mainFrame
()->evaluateJavaScript
(QString ("constructFileName (%1).arg (centerPointsList[0].toFloat())"));
QList <QVariant> allListObj
= holdInformation.
toList ();
QList <QVariant> fileNamesList
= allListObj
[0].
toList ();
std :: cout << fileNamesList[0].toFloat() << "================= \n";
}
for (int i = 0; i < centerPointsList.size (); i++)
{
QVariant holdInformation = map->page ()->mainFrame ()->evaluateJavaScript (QString ("constructFileName (%1).arg (centerPointsList[0].toFloat())"));
QList <QVariant> allListObj = holdInformation.toList ();
QList <QVariant> fileNamesList = allListObj[0].toList ();
std :: cout << fileNamesList[0].toFloat() << "================= \n";
}
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.
Bookmarks