PDA

View Full Version : setCursor(Qt::PointingHandCursor) doesn't work on Mac



Farseer
7th December 2010, 06:00
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:

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!

FelixB
7th December 2010, 11:04
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...

Farseer
7th December 2010, 11:18
I have tried Qt::CrossCursor/Qt::WaitCursor, both failed. Thanks for your reply!

omolina
13th December 2010, 14:46
hi, I have tried with :


button->setCursor(QCursor(Qt::PointingHandCursor));

and


button->setCursor(QCursor(static_cast<Qt::CursorShape>(13)));

with no result :(.


thanks.

andyp
16th December 2010, 11:45
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 ?