<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QWebView stops responding]]></title><description><![CDATA[<p dir="auto">I have a <code>SLOT</code> in which a create an instance of my <code>WebView</code> which is <code>QWebView</code>. The problem is that if that <code>SLOT</code> is called second time, the Webkit core crashes or the window stops responding (or something else, I am not sure what fails).</p>
<p dir="auto">This is my WebView:</p>
<p dir="auto">@    WebView::WebView(QWidget *parent) :<br />
QWebView(parent)<br />
{}</p>
<pre><code>void WebView::cleanUp(){
    this-&gt;hide();
    this-&gt;close();
}

void WebView::showWeb(QString link){
    QUrl url(link);
    this-&gt;load(url);
    this-&gt;show();

    connect(this-&gt;page(), SIGNAL(windowCloseRequested()), SLOT(cleanUp()));
}@
</code></pre>
<p dir="auto">And the <code>SLOT</code> contains this:</p>
<p dir="auto">@    WebView* webView = new WebView();<br />
webView-&gt;showWeb(link);@</p>
<p dir="auto">This is how second webview looks like: !<a href="http://i.stack.imgur.com/rlzMq.png(WebView)" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.stack.imgur.com/rlzMq.png(WebView)</a>! That is the actual webview, frozen, after a few seconds the app shows that it stopped responding and I have to force quit it. First WebView loads the url just fine.</p>
]]></description><link>https://forum.qt.io/topic/48106/qwebview-stops-responding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Nov 2026 00:43:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48106.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Nov 2014 12:14:31 GMT</pubDate><ttl>60</ttl></channel></rss>