Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView can't open a link twice in a short time
Forum Updated to NodeBB v4.3 + New Features

QWebView can't open a link twice in a short time

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.1k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lvshuchengyin
    wrote on last edited by
    #1

    I use QWebView to load a web page.
    That page have an attachment link like:

    <a href="#" target="_blank">open</a>
    the a link has onclick code is :
    donwload_attchs('func.aspx?groupid=mail&act=getattch&TOPIC_GUID=3c9fdaef3e4a40ffb38ca0e09ba77ade&POST_Local=0&name=tmp.png&isopen=1', this.target);return false;

    It just open a new tab to load a png image file. And it work fine in chrome browser.
    When I click it first time, it work fine! And then I click it , it just no response, after 5 times click, it will work fine again.

    I can't understand why it work like that.
    Does anyone can help me to fix it?
    Thanks in advance!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lvshuchengyin
      wrote on last edited by
      #2

      I try a lot of times.
      Found that after I click the link it will be fail to response another click until I double click the page it will be fine again.

      I use qt 4.8.5

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lvshuchengyin
        wrote on last edited by
        #3

        I try to switch to Qt5.2, it work great. So maybe the Qt4.8.5 's javascript engine not so good.

        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