How to Set Cursor before QEvent::Resize??
-
@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! -
SetCursor is not a Qt method.
Maybe you're interested in "QCursor":http://doc.qt.nokia.com/4.7/qcursor.html