[Qt-interest] Mouse click on QTextBrowser.
Niegodziwy Beru
niegodziwy.beru at gmail.com
Fri Mar 19 21:55:26 CET 2010
2010/3/19 Christopher Probst <cprobst at ics.com>:
> I would make the following changes to make it work. Since QTextBrowser
> inherits from QAbstractScrollArea, the mouse events you are trying to catch
> "belong" to QAbstractScrollArea::viewport(). In the context of your example,
> this means that two occurrences of brw should be replaced by
> brw->viewport().
>
Yes this actually help. You are genius, thank you very much.
--
Ad maiorem Dei gloriam
More information about the Qt-interest-old
mailing list