maverick_pol
9th October 2007, 16:23
Hi guys,
I have some widgets and QGraphicsTextItem on my scene/view. I want those items/widgets not to accept any events(especially mouse events(like hover)). I have already done this for QGraphicsTExtItem:
...
item->setAcceptsHoverEvents(false);
item->setAcceptedMouseButtons(false);
...
but do not know howto disable mousehoverEvent for widgets. My widgets are transparent and every time I move to the widget I want my special cursor to be drawn under those widgets(on the scene), but nothing on the scene is drawn(under a widget) while moving the cursor on my widgets.
Any ideas?(
Thanks
P.S>
SetDisabled(false) do not work.
setFocusPolicy(Qt::NoFocus) do not work either.
I have some widgets and QGraphicsTextItem on my scene/view. I want those items/widgets not to accept any events(especially mouse events(like hover)). I have already done this for QGraphicsTExtItem:
...
item->setAcceptsHoverEvents(false);
item->setAcceptedMouseButtons(false);
...
but do not know howto disable mousehoverEvent for widgets. My widgets are transparent and every time I move to the widget I want my special cursor to be drawn under those widgets(on the scene), but nothing on the scene is drawn(under a widget) while moving the cursor on my widgets.
Any ideas?(
Thanks
P.S>
SetDisabled(false) do not work.
setFocusPolicy(Qt::NoFocus) do not work either.