[Qtce-preview-feedback] Mouse right click on WinCE

Marco qtce-preview-feedback at retrodesignfan.eu
Tue Mar 4 14:38:16 CET 2008


If you explicit using the right, middle, second thumb or whatever button 
of a mouse and the device hasn't such a button, the action can't be 
triggered.
You can't expect sorcery from Qt!

You just have to take sure that you have a "fallback" trigger such as a 
(context) menu-item for every action you have in your application. This 
comfort limitation can't be avoided.
Just realize that it is impossible that your application looks and works 
the same on any device. Even with Qt: This is impossible.
If you start your application on a headless device, there is just 
nothing visible to the user...

For the right button context menu Maurice has sad anything. Replace your 
right mouse button event handling with "QWidget::contextMenuEvent" and 
it works on desktop and ce (in the ce manner). Just RTFM

Marco

Manoj Agrawal wrote:
> So the code written for mouse right button can not be used as it is? or 
> the same code has to be written in contextMenuEvent handler? What about 
> the actions which can not be used as a context menu like dragging an 
> image on mouse move with right mouse button pressed?
>
> Regards,
> Manoj
>
> Maurice Kalinowski wrote:
>   
>> Hi,
>>
>> Manoj Agrawal wrote:
>>     
>>> Hi,
>>>
>>> I guess there is no mouse right click on windows CE devices. 
>>>       
>> This depends on your device itself. While Windows Mobile for instance 
>> has no right mouse button, some Windows CE devices (usually the ones 
>> connected to a mouse) actually have it.
>> Beside this, all WindowsCE based devices do have a context menu, which 
>> opens after a mouse press and then waiting for certain amount of time. 
>> This will be handled as a contextMenuEvent inside of Qt applications.
>>
>>
>> Best Regards,
>>
>> Maurice Kalinowski
>>
>>
>>
>>     
> _______________________________________________
> Qtce-preview-feedback mailing list
> Qtce-preview-feedback at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback
>
>   




More information about the Qt-wince-interest mailing list