Results 1 to 2 of 2

Thread: How to get text field content in QWebView

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default How to get text field content in QWebView

    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!

  2. #2
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get text field content in QWebView

    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.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Replies: 0
    Last Post: 10th April 2009, 15:28
  3. Match the text beetween two string
    By dreamer in forum Qt Programming
    Replies: 4
    Last Post: 20th May 2008, 14:48
  4. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  5. Editable text in QGraphicsView
    By wysota in forum Qt Programming
    Replies: 8
    Last Post: 24th February 2007, 15:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.