May 19, 2011

bundickt bundickt
Lab Rat
53 posts

WebView Clear history

 

Is it possible to clear the history of a WebView?

3 replies

May 19, 2011

Gerolf Gerolf
Area 51 Engineer
3210 posts

You can use:

  1.     QWebView* pWebView;
  2.     QWebHistory* pHistory = pWebView->history();
  3.     pHistory->clear();

see QWebView::history [doc.qt.nokia.com] and QWebHistory::clear [doc.qt.nokia.com]

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

May 19, 2011

bundickt bundickt
Lab Rat
53 posts

I was looking for a way of doing it through QML, but If that’s my only option I guess I will create a qml plug-in.

May 20, 2011

Gerolf Gerolf
Area 51 Engineer
3210 posts

Ups, sorry, missed the forum topic.
Just saw WebView :-)

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

 
  ‹‹ Loader child element      how to change mouse message routing? ››

You must log in to post a reply. Not a member yet? Register here!