setCursor(Qt::PointingHandCursor) doesn't work on Mac
I create a Button which is derived from QFrame. I want cursor change to hand shape when enter the Button area.
In its constructor i added:
Code:
this->setCursor(Qt::PointingHandCursor);
This works fine on Win7 32bit, but doesn't work on Mac OS X 10.6.5. My Qt version is 4.6.
Thanks for any help!
Re: setCursor(Qt::PointingHandCursor) doesn't work on Mac
have you tried to set other symbols? maybe "PointingHand" is not available on mac? I never worked with a mac, so it's just a little guess...
Re: setCursor(Qt::PointingHandCursor) doesn't work on Mac
I have tried Qt::CrossCursor/Qt::WaitCursor, both failed. Thanks for your reply!
Re: setCursor(Qt::PointingHandCursor) doesn't work on Mac
hi, I have tried with :
Code:
button
->setCursor
(QCursor(Qt
::PointingHandCursor));
and
Code:
button
->setCursor
(QCursor(static_cast<Qt
::CursorShape>
(13)));
with no result :(.
thanks.
Re: setCursor(Qt::PointingHandCursor) doesn't work on Mac
Have you had any joy yet in tracking this down ?
I have just installed MacOS 10.6.5, and setCursor no longer appears to work properly.
In desperation I have tried adding calls to QCoreApplication::flush(), but that did not help.
The same code works OK on Windows and Linux. I am using QT 4.5.3.
Has anybody else had similar problems ?