Qt-interest Archive, March 2002
QCursor bug ?
Message 1 in thread
I have a problem where the MainWindow of the application gets a Cursor which
has been unset before.
In the MainWindow I set the cursor to WaitCursor and back to ArrowCursor
while handling some functions of a dialog. Later on in the code I popup a
dialog which pops up a save as dialog and after that a Progress dialog. When
the progress dialog is completed the Cursor of the MainWindow is 'reset' to
the WaitCursor. This one stays when I close the dialog.
No setCursor/unsetCursor/setOverride/resetOverride is called by my program !
The Cursor which is first used for setCursor is restored ! Not one of all
others after that.
Has anyone seen this behaviour before.
System: Windows NT and Linux
QT:3.0.2
Best regards,
Marcel Stegehuis
--
[ signature omitted ]
Message 2 in thread
Not to difficult in the end. Very frustrating indeed.
QProgressDialog saves/restores the Cursor of the parent (if given).
Re-using a QProgressDialog can give problems if one changes the cursor also
in between that time.
Solution is always set the progressbar to 0 which causes the saved cursor to
be updated. In that way a cursor restored at reset() or deletion of the
QProgressDialog always will be the most recent one.
Regards,
Marcel
On Thursday 14 March 2002 13:28, you wrote:
> I have a problem where the MainWindow of the application gets a Cursor
> which has been unset before.
>
> In the MainWindow I set the cursor to WaitCursor and back to ArrowCursor
> while handling some functions of a dialog. Later on in the code I popup a
> dialog which pops up a save as dialog and after that a Progress dialog.
> When the progress dialog is completed the Cursor of the MainWindow is
> 'reset' to the WaitCursor. This one stays when I close the dialog.
>
> No setCursor/unsetCursor/setOverride/resetOverride is called by my program
> !
>
> The Cursor which is first used for setCursor is restored ! Not one of all
> others after that.
>
> Has anyone seen this behaviour before.
>
> System: Windows NT and Linux
> QT:3.0.2
>
> Best regards,
>
> Marcel Stegehuis
--
[ signature omitted ]