[Qtce-preview-feedback] QCursor::Pos()
Maurice Kalinowski
mkalinow at trolltech.com
Tue Apr 22 15:29:17 CEST 2008
Hi,
thank you for trying out Qt/WinCE. I do have some questions/comments on
this topic.
Matthias Van Woensel wrote:
>
> It looks like QCursor::Pos() is not supported on WINCE. Which, in most
> cases, makes sense since most wince devices don't have a mouse. I
> think that it would be convenient for wince devices to have the
> QCursor::Pos to be set to the last position the stylus clicked.
> However, on some devices, we do have a mousepointer in the form of a
> tiny mouse pad. The samsung i780 is an example of one such device.
>
1. What do you mean with not supported? Is it not available as a class
or do the return values seem useless?
2. We check on compile time if GWES_ICONCURS is defined. This helps us
specifying if a SDK supports icon cursors and thus if cursor support
makes sense. If it is not supported we still do not exclude the QCursor
support unless one compiles for Windows Mobile 6 Standard Edition
(reason later).
3. In <qtdir>/src/gui/kernel/qcursor_win.cpp line 85 following you can
see at the code for Windows CE. We simply call the native hook and ask
for the position of the cursor. If this call returns invalid data, there
is not much we can do about it.
4. With which mkspec did you compile Qt/WinCE on. Browsing for the
device has shown that it is supposed to be a Windows Mobile 6
professional device, thus wincewm60professional-msvc2005 would be the
perfect match for that.
To explain above issue about Windows Mobile 6 Standard Edition. Though
GWES_ICONCURS is defined, all symbols to use an icon cursor are missing
in the provided libraries, thus linking would fail due to incompatible
header configuration. This was the reason why we considered to exclude
QCursor support for this configuration (mkspec: wince60standard-msvc2005).
Looking forward to your answers and
Best Regards,
Maurice Kalinowski
More information about the Qtce-preview-feedback
mailing list