[Qt-interest] QToolButton "hover" signal and then?
Ben Swerts
benswerts at telenet.be
Fri Feb 5 17:38:55 CET 2010
Hi Eckhard,
You'll have to subclass QToolButton and emit a custom signal from the
leaveEvent handler (check QWidget::leaveEvent).
Hope it helps.
Greets,
Ben
> Hi,
> I have a toolbar with some toolbuttons on it.
> As the cursor hovers over one of the buttons I can use the signal to
> call a slot.
> When the cursor leaves the button without having clicked it a different
> slot shall be called.
> But there seems to be no signal emitted when the cursor leaves the button.
> How can I get a signal out of the toolbuttin that indicates the the
> cursor does not hover anymore over the buttton?
>
> Eckhard
More information about the Qt-interest-old
mailing list