The tooltip solution should work out of the box for all children that don't have their own tooltips. If you prefer the event filter solution, you have to enable mouse tracking for all widgets.
The tooltip solution should work out of the box for all children that don't have their own tooltips. If you prefer the event filter solution, you have to enable mouse tracking for all widgets.
How i can do it?If you prefer the event filter solution, you have to enable mouse tracking for all widgets.
I know, but how i can set it for all widgets?
may be will be easy to set installEventFilter for all widgets?
The same way you installed event filters to all widgets.
I wouldn't advise that reallymay be will be easy to set installEventFilter for all widgets?I wouldnt' advise doing what you are doing at all. I'd probably reimplement QCoreApplication::event() and do some smart event manipulations there to achieve the effect you want in a simmilar manner to the tool tip system already present in the event loop.
pakulo (14th May 2007)
Thank you... i decided to use
Qt Code:
QList<QWidget*> widgets = qFindChildren<QWidget*>(this); widget->installEventFilter(this);To copy to clipboard, switch view to plain text mode
As you wish. Just be aware that some widgets' functionality (especially ones that are not implemented correctly) might get broken because of the use of mouse tracking.
pakulo (15th May 2007)
Bookmarks