Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QWebView and Keyboard interaction
QtWS25 Last Chance

QWebView and Keyboard interaction

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 2 Posters 3.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hungnd
    wrote on last edited by
    #1

    Hi all,

    I putted a QWebView onto my window form and load a website. Everything was fine. Now I don't want to back history when I press the Backspace key on QWebView (but Backspace key is still allowed inside page input fields), how to do that?

    Thanks so much!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      implement a keyPressEvent and then ignore the backspace key.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hungnd
        wrote on last edited by
        #3

        but I don't want to prevent users from using the Backspace key in html input fields

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mohsen
          wrote on last edited by
          #4

          i don't understand when backspace key will be act like "history back". probably it's not about when an input object is focused. Maybe you could catch it with some javascript code.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved