[Qt-interest] QWebPage: how to clear the selection?

Daniel Vérité daniel.verite at gmail.com
Sat Dec 6 15:24:43 CET 2008


	 Daniel Hartwig writes

> Normaly you don't have to use the descructor, it's solved with the 
> parent-child relation at qt. If you delete the parent, he delete the 
child.

I guess you're replying to a different question, since what I'm looking 
for has nothing to do with destructors.

With QTextBrowser the selection can be cleared using this sequence of 
calls:

QTextCursor c = browser->textCursor()
c.clearSelection();
browser->setCursor(c);

What I'm looking for is a way to achieve the same result with a 
QWebPage.

Best regards,
-- 
 Daniel
 PostgreSQL-powered mail user agent and storage: 
http://www.manitou-mail.org 



More information about the Qt-interest-old mailing list