<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" id="owaParaStyle">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hello Костадин Дамянов,<br>
<br>
I am not expert in this area so this is just my opinion:<br>
<br>
Touch events are the only "native" events on a (hardware) device with touchscreen as the only pointing device. For compatibility with older widgets "By default, QGuiApplication translates the first touch point in a QTouchEvent into a QMouseEvent."[1]. Nothing
more. Sailfish OS Emulator currently does not emulate eny device with other than touchscreen pointing device.<br>
<br>
So IMO what you want is not likely to be possible.<br>
<br>
I suggest you to describe your case in more detail - someone could than advice you a better solution.<br>
<br>
BR,<br>
Martin<br>
<br>
[1] http://doc.qt.io/qt-5/qtouchevent.html#event-delivery-and-propagation<br>
<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF238296" style="direction:ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Devel [devel-bounces@lists.sailfishos.org] on behalf of Костадин Дамянов [maxmight@gmail.com]<br>
<b>Sent:</b> Sunday, March 05, 2017 2:44 PM<br>
<b>To:</b> devel@lists.sailfishos.org<br>
<b>Subject:</b> [SailfishDevel] Mouse events with emulator<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>Hello.<br>
<br>
</div>
I am developing an application an I have noticed that with the emulator the application only receives only
<code>QEvent::TouchBegin </code>and<code> </code><code><code>QEvent::TouchEnd events.<br>
<br>
</code></code>Is there a way to receive <code>QEvent::MouseButtonPress, </code><code>QEvent::MouseMove</code> and
<code>QEvent::MouseButtonRelease</code> events when working with the emulator?<code><code></code></code></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>