PDA

View Full Version : How to get text field content in QWebView



richardander
2nd June 2009, 01:13
Hi,

In my application, I use QWebView to display an application form ( two text fields) and two buttons "submit" and "Cancel" in html. Question:

1. To get the content of text fields, how to do it? Is there any signal in QWebView or QWebPage?

2. To get the signal of button, how to do?

Thank you!

kwisp
2nd June 2009, 08:04
richardander,
what about
void triggerPageAction ( QWebPage::WebAction action, bool checked = false )
with action = QWebPage::Copy or QWebPage::SelectNextLine or anything else select*
and
QClipboard`s Public Functions
QString QClipboard::text ( Mode mode = Clipboard ) const

As variant it is no bad, but we can think more.
:)