Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-27 Thread Matt Wilkie
> > Below I've pasted a leo subtree containing a demo @button which will > display html hyperlinks to nodes inside a QTextBrowser. > Oh this is very neat, thank you. I've imagined something like this for Leo Docs. -- You received this message because you are subscribed to the Google Groups "

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-27 Thread Thomas Passin
On Thursday, February 27, 2020 at 7:11:27 AM UTC-5, btheado wrote: > > > > On Wed, Feb 26, 2020 at 11:05 PM Thomas Passin > wrote: > >> Thanks! Wow, that will save me lots of time. U, I don't see how to >> "paste as node". My version of Leo has no menu item or leo command that >> seems

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-27 Thread Brian Theado
On Wed, Feb 26, 2020 at 11:05 PM Thomas Passin wrote: > Thanks! Wow, that will save me lots of time. U, I don't see how to > "paste as node". My version of Leo has no menu item or leo command that > seems to be that. Of course I can just paste it into the body of a node, > but that won't

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-27 Thread Edward K. Ream
On Wed, Feb 26, 2020 at 9:15 PM Brian Theado wrote: > > Below I've pasted a leo subtree containing a demo @button which will > display html hyperlinks to nodes inside a QTextBrowser. > Thanks for this helpful example. Edward -- You received this message because you are subscribed to the Googl

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-27 Thread Edward K. Ream
On Wed, Feb 26, 2020 at 5:37 PM Thomas Passin wrote: > > If I create a QT5 browser widget, and (within Leo) want to intercept and >>> act on clicks on hyperlinks, is that feasible? Would I just look up the >>> event for a hyperlink click and connect it to my own handler? >>> >> >> Yes. >> >> Wha

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-26 Thread Thomas Passin
Thanks! Wow, that will save me lots of time. U, I don't see how to "paste as node". My version of Leo has no menu item or leo command that seems to be that. Of course I can just paste it into the body of a node, but that won't give the same result. So I opened a new text file, pasted yo

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-26 Thread Brian Theado
Thomas, Below I've pasted a leo subtree containing a demo @button which will display html hyperlinks to nodes inside a QTextBrowser. To use it copy the xml and in a leo outline, "paste as node". Create a script button from it and after clicking the button, a new pane should appear containing hype

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-26 Thread Thomas Passin
On Wednesday, February 26, 2020 at 1:14:53 PM UTC-5, Edward K. Ream wrote: > > > > On Wed, Feb 26, 2020 at 11:45 AM Thomas Passin > wrote: > >> If I create a QT5 browser widget, and (within Leo) want to intercept and >> act on clicks on hyperlinks, is that feasible? Would I just look up the >

Re: How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-26 Thread Edward K. Ream
On Wed, Feb 26, 2020 at 11:45 AM Thomas Passin wrote: > If I create a QT5 browser widget, and (within Leo) want to intercept and > act on clicks on hyperlinks, is that feasible? Would I just look up the > event for a hyperlink click and connect it to my own handler? > Yes. What I'm interested

How To Intercept Clicks On Links in a QT5 Browser Widget

2020-02-26 Thread Thomas Passin
If I create a QT5 browser widget, and (within Leo) want to intercept and act on clicks on hyperlinks, is that feasible? Would I just look up the event for a hyperlink click and connect it to my own handler? What I'm interested in specifically is the case where I have a mind map in the browser,