[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WebView object - Event on Link click
[Thread Prev] | [Thread Next]
- Subject: Re: WebView object - Event on Link click
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Wed, 9 Sep 2026 08:34:28 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Could you use the MouseDown or MouseUp event with the Webview.Link property ? Public Sub WebView1_MouseDown() If Webview1.Link = "MyCustomLink" Then DoSomethingWithLink() Stop Event ' Don't do anything else with the link Endif End Respects BruceS On Wed, 9 Sept 2026 at 04:39, Olivier Cruilles <olivier.cruilles@xxxxxxxx> wrote: > Hello, > > I'm using a WebView (gb.qt) in one of my project and I would like to > know if it's possible to raise an event when the user click on a Web > Link in the web page displayed into this WebView. > > I tried the WebView1_Link() event but it raise when the user fly over a > link with the mouse, but no way to get the link reference. > > My goal will to get a fake link in the web page displayed into the > WebView object, when the user click on it with the mouse. > > I don't want to be redirected to the end point of the link, I just would > like to get the Link reference, for internal process using it. > > > Does anyone has already experienced that and can help me on that please ? > > > Thank you > > Olivier > > >
| Re: WebView object - Event on Link click | Bruce Steers <bsteers4@xxxxxxxxx> |
| WebView object - Event on Link click | Olivier Cruilles <olivier.cruilles@xxxxxxxx> |