[Gambas-user] WebView1_MouseDown() question

Benoît Minisini gambas at ...1...
Tue Aug 23 15:47:33 CEST 2011


> This code I got I think from the webview demo some time ago:
> 
>  If hTest.Selected Then
>         Clipboard.Copy(Webview1.SelectedText)
>         Print webview1.SelectedText
>    End If
> 
> If the webview contains html, then the print webview1.selected text prints
> out plain text.
> 
> Is there anyway I can capture the html of the text? into a variable. It
> must be around somewhere because if  I select the text, due a ctrl copy,
> and then paste it into a textarea with the middle mouse button, then it is
> pasted as formatted html.
> 
> REgards
> 
> Richard
> 

Apparently there is no way in QtWebKit to retrieve the HTML selected text... I 
will investigate.

And please if you can use a mail subject that is related to its contents!

Regards,

-- 
Benoît Minisini




More information about the User mailing list