[Development] [Qt4.8.1 QtWebKit]Memory usage problems
Fred Fung
duoduo1097 at gmail.com
Tue Sep 18 10:39:22 CEST 2012
Hi all,
I use a subclass object of QWebView to visit
http://www.youtube.com/leanback on my embedded linux platform (MIPS).
Input any keyword in leanback's search page, then view the search
results straight ahead always by “down” arrow-key.
I found that the memory usage is kept in increases.(by 'top'
command). Finally, memory is exhausted.
The subclass of QWebView and the QWebView is almost same, I did SSL
error handle by ignoreSslErrors() only.
Code fragment:
WebView::WebView(QWidget *parent) :
QWebView(parent)
{
//SSL Error handle
connect(page()->networkAccessManager(),
SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> & )),
this,
SLOT(handleSslErrors(QNetworkReply*, const QList<QSslError> &
)));
}
void WebView::handleSslErrors(QNetworkReply* reply, const QList<QSslError>
&errors)
{
reply->ignoreSslErrors();
}
-----------------------------------------------------------------
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
WebView view;
view.load(QUrl("http://www.youtube.com/leanback"));
view.show();
return app.exec();
}
Is there something I missed? Hoping someone to help me, thanks.
Regards,
FF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120918/9ff2cc8c/attachment.html>
More information about the Development
mailing list