[Qt-jambi-interest] [QT Jambi 4.4] Pointer not made hidden
Dimitri Frederickx
info at dimitrifrederickx.be
Fri Apr 4 14:35:55 CEST 2008
Eskil Abrahamsen Blomfeldt <eblomfel at trolltech.com> wrote:
> Hi, Dimitri.
>
> Dimitri Frederickx wrote:
>> When I start up my application, I execute the following code:
>> QApplication.setOverrideCursor(new
>> QCursor(Qt.CursorShape.BlankCursor));
>>
>> After this I create a QGraphicsView.
>>
>> Although I've overridden the cursor to a blank cursor, the cursor is
>> still displayed. From the moment that I move my mouse pointer, it is
>> then made invisible.
>>
>> How can I make my mouse pointer invisible without first having to move
>> my mouse? Is this maybe a bug?
>>
>
> I am not able to reproduce this problem. Please note that the cursor is
> only overridden for the application window. Are you sure that you are
> not misinterpreting the effects? To be clear, the intended effect of
> your code is that the cursor should be visible when it's outside the
> application's window, and invisible inside. E.g. if you use
> showMaximized() to show your window rather than show(), the window will
> immediately fill the entire screen and you should see that the mouse
> cursor is invisible on start up.
>
> Does this not work as intended? In that case, on which platform have you
> tested it?
>
> -- Eskil
>
>
Yes, this is the behavior that I expected, but it seems that this is not
working on Mac OS X (I'm working on version 10.5.2).
I'm calling showFullScreen() instead of show() or showMaximized().
/Dimitri
More information about the Qt-jambi-interest
mailing list