Results 1 to 3 of 3

Thread: How to send a "Ctrl+V" event to a QWebView

  1. #1
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    3
    Qt products
    Qt Jambi
    Platforms
    Unix/X11

    Default How to send a "Ctrl+V" event to a QWebView

    QWebView may have several text fields embedded within it. I want that the user, if he wishes to paste something on to those fields, presses the paste icon, the text should go into those fields. The clipboard already has the text. One way would be if I can send a "Ctrl + V" signal to QWebView, making the text fields there, think that the user has pressed that combination and paste the clipboard's contents Basically, I want to simulate a keyboard event. How should I do that ?

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: How to send a "Ctrl+V" event to a QWebView

    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    3
    Qt products
    Qt Jambi
    Platforms
    Unix/X11

    Default Re: How to send a "Ctrl+V" event to a QWebView

    Thanks. I got it.

Similar Threads

  1. Replies: 8
    Last Post: 2nd September 2010, 16:49
  2. keyPressEvent - "ctrl + tab" handle two time
    By somename in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2010, 21:29
  3. Shortcut: CTRL + SHIFT + "letters"
    By smarinr in forum Qt Programming
    Replies: 17
    Last Post: 22nd May 2009, 10:34
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05

Tags for this Thread

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.