qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Mouse click on QTextBrowser.

Subject: Re: [Qt-interest] Mouse click on QTextBrowser.
From: Niegodziwy Beru
Date: Fri, 19 Mar 2010 21:55:26 +0100
2010/3/19 Christopher Probst <cprobst@xxxxxxx>:

> 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
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>