title: QEventLoop: Cannot be used without QApplication
body: <p>I'm trying to validate an xml file against a specific schema.<br>
  So I'm loading the schema into the QXmlSchema object. But I get some strange errors.<br>
  My code looks like:</p>
  
  <pre><code>int main() {
  
  QUrl url("http://www.schema-example.org/myschema.xsd");
  
  QXmlSchema schema;
  if (schema.load(url) == true)
      qDebug() &lt;&lt; "schema is valid";
  else
      qDebug() &lt;&lt; "schema is invalid";
  
  return 1;
  }
  </code></pre>
  
  <p>When I try to run the above piece of code, Qt errors out saying:  </p>
  
  <p>QEventLoop: Cannot be used without QApplication<br>
  QDBusConnection: system D_Bus connection created before QCoreApplication.<br>
  Application may misbehave.<br>
  QEventLoop: Cannot be used without QApplication</p>
  
  <p>My Qt Designer version: qt4-designer 4:4.8.1-0ubuntu4.1<br>
  My Qt Creator version : qtcreator 2.4.1-0ubuntu2</p>
  
  <p>Could someone please help me to solve this problem.<br>
  Thanks  </p>