Maurice, Thanks, we'll try that approach.
Matthias On Fri, Apr 25, 2008 at 11:38 AM, Maurice Kalinowski <[EMAIL PROTECTED]> wrote: > Hi, > > Matthias Van Woensel wrote: > > > > Thanks for the quick reply and the tonnes of information. > No problem, I'll try to make it short this time :) > > > > > We tested it on wincewm60professional-msvc2005 and we keep getting > > QPoint(66712740,21178900) as return value, no matter where we click. > I don't know for what purpose you need the cursor position, but you > should at least get valid positions in the > mousePressEvent()/mouseReleaseEvent(). Eventually you can you use these > for your scenario. > > > Best Regards, > > Maurice Kalinowski > > > > > Any further ideas on how to solve this problem? > > > > Kind regards > > Matthias > > > > On Tue, Apr 22, 2008 at 3:29 PM, Maurice Kalinowski > > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > > > 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 > > > > _______________________________________________ > > Qtce-preview-feedback mailing list > > [email protected] > > <mailto:[email protected]> > > http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Qtce-preview-feedback mailing list > > [email protected] > > http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback > > > > _______________________________________________ > Qtce-preview-feedback mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback >
_______________________________________________ Qtce-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback
