Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView stops responding
Forum Updated to NodeBB v4.3 + New Features

QWebView stops responding

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 566 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Noturnoz
    wrote on last edited by
    #1

    I have a SLOT in which a create an instance of my WebView which is QWebView. The problem is that if that SLOT is called second time, the Webkit core crashes or the window stops responding (or something else, I am not sure what fails).

    This is my WebView:

    @ WebView::WebView(QWidget *parent) :
    QWebView(parent)
    {}

    void WebView::cleanUp(){
        this->hide();
        this->close();
    }
    
    void WebView::showWeb(QString link){
        QUrl url(link);
        this->load(url);
        this->show();
    
        connect(this->page(), SIGNAL(windowCloseRequested()), SLOT(cleanUp()));
    }@
    

    And the SLOT contains this:

    @ WebView* webView = new WebView();
    webView->showWeb(link);@

    This is how second webview looks like: !http://i.stack.imgur.com/rlzMq.png(WebView)! 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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved