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. Zoom functionality when double click
QtWS25 Last Chance

Zoom functionality when double click

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 2.9k 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
    HaykG
    wrote on 18 Aug 2010, 17:01 last edited by
    #1

    I've created zooming functionality when user double-clicks in the webview. Problem is following: when I double click in a position where there is a link it navigates to that link (as double click is emitted after two press events). Please give me some idea for disabling this two mouse presses in case of double click...

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 18 Aug 2010, 17:21 last edited by
      #2

      You can run a timer after first click and if there is no second click open an url. But it will cause some slowdown of links opening.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HaykG
        wrote on 18 Aug 2010, 18:09 last edited by
        #3

        That is correct but... Actually I've done following: I have a timer which runs QApplication::doubleClickInterval() ms. I can't call the QWebView::mousePress which actually handles the click on the link from my timer. Also don't want to manually find the underlying element and navigate to it's url, because there may be items such as "submit buttons" which don't have underlying url but should be pressed (e.g. google search button). So the thing is that I want to call the functionality of the QWebView::mousePress() from that timer slot which doesn't work...

        1 Reply Last reply
        0

        1/3

        18 Aug 2010, 17:01

        • Login

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