How to Set Cursor before QEvent::Resize??
General and Desktop
3
Posts
2
Posters
2.9k
Views
1
Watching
-
wrote on 1 Mar 2011, 06:41 last edited by
@bool Gadget::event(QEvent *event)
{
if (event->type() == QEvent::HoverEnter)
{
SetCursor(::LoadCursor(NULL, IDC_SIZEWE));
}
else if (event->type() == QEvent::HoverLeave)
{
SetCursor(::LoadCursor(NULL, IDC_SIZEWE));
}return QWidget::event(event);
}@
It works but is very difficult to use.
Please, help me!!
Many thank! -
wrote on 1 Mar 2011, 13:48 last edited by
SetCursor is not a Qt method.
Maybe you're interested in "QCursor":http://doc.qt.nokia.com/4.7/qcursor.html
-
wrote on 25 Mar 2011, 10:06 last edited by
Thank for report!