title: How to convert QScriptValue to QVariantList in Blackberry Qt C++
body: <p>it is my code for conversion from QScriptValue to QVariantList .But i am getting error on the last line. please correct me if i am doing something wrong.</p>
  
  <pre><code>    void ApplicationUI::onResult(QNetworkReply* reply)
      {
  
          if (reply-&gt;error() != QNetworkReply::NoError){
              return;  // ...only in a blog post
          }
          QString data = (QString) reply-&gt;readAll();
          QScriptEngine engine;
          QScriptValue result = engine.evaluate("(" + data + ")");
          QScriptValue entries = result.property("result");
  
  
          QVariantList *mainListd=entries.toVariant().toList();
  
  }
  </code></pre>
  
  <p>I want to insert this mainListd in GroupDataModel.</p>