title: How to enable localStorage in QWebView?
body: <p>I have a webview in a Qt application. I create it using:</p>
  
  <pre><code>QWebView *view = new QWebView();
  </code></pre>
  
  <p>and then I do:</p>
  
  <pre><code>view-&gt;load(QUrl(...));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>view-&gt;show();
  </code></pre>
  
  <hr>
  
  <p>Instead of an empty object, <code>localStorage</code> is <code>null</code>. I guess I need to enable it somewhere on the Qt side.</p>
  
  <p>How can I enable <code>localStorage</code> in a <code>QWebView</code>?</p>