<div dir="auto"><div>Hi,</div><div dir="auto"><br></div><div dir="auto">Found issue in latest talib version 1.22 where module median depth=3 needs to be set explicitly in ts.conf to avoid negative x values for the pen up event when pressure =0.</div><div dir="auto"><br></div><div dir="auto">Posting the same incase any one face the issue when Qt5 is configured with -tslib.</div><div dir="auto"><br></div><div dir="auto">Best Regards,</div><div dir="auto">Ramakanth<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, 19 Nov, 2020, 12:02 Ramakanth Kesireddy, <<a href="mailto:rama.kesi@gmail.com">rama.kesi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Further details of the issue are mentioned below:</div><div>Issue: <span style="font-family:Calibri,sans-serif;font-size:11pt">Button’s on the UI QT 5.6.3 widgets application seem to be stuck sometimes when we press and release and found that mousereleaseevent is not received.</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">Also Qt 5.6.3 on target is configured with -tslib and there are penup events received(like sample.pressure=0), not sure if the release event is missed to propagate to the</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">widget with missing coordinates.</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt"><br></span></div><div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Below is the sample output from the tslib_test program which shows a negative x coordinate value with the
pressure value 0 at times. Is it possible that Qttslib(<span style="font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">qtbase/src/platformsupport/input/tslib/qtslib.cpp)</span><span style="font-size:11pt"> would throw out that sample which would result in the missed mouseReleaseEvent?</span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br></p></div><div> XPos YPos Pressure<br> 316 216 234<br> 316 216 232<br> 318 214 0<br> 330 22 195<br> 330 21 196<br> 329 22 0<br> 228 223 168<br> 228 223 168<br> 227 221 0<br> 229 217 173<br> 231 215 0<br> 248 210 160<br> 248 210 160<br> 254 209 0<br> 267 369 252<br> 263 372 0<br> 441 338 275<br> 442 336 274<br> 439 339 0<br> 499 331 292<br> 499 330 291<br> 496 328 0<br> 374 367 269<br> 374 367 267<br> 376 371 0<br> 561 199 280<br> 561 199 280<br> 558 201 0<br> 547 329 311<br> 547 329 309<br> 544 329 0<br> 494 382 300<br> 495 381 300<br> 498 378 0<br> 568 118 264<br> 569 119 263<br> 570 121 0<br> 48 101 175<br> 48 101 173<br> 47 101 0<br> 141 182 201<br> 141 183 200<br> 140 184 0<br> 534 267 285<br> 533 266 285<br> 531 265 0<br> 403 387 280<br> 404 388 280<br> 409 390 0<br> 288 407 253<br> 288 407 251<br> 289 409 0<br> 318 345 253<br> 319 345 253<br> 320 345 0<br> 311 290 257<br> 309 298 278<br> 304 297 0<br> 423 236 238<br> 424 234 0<br> 422 234 259<br> 416 236 0<br> 285 300 245<br> 283 299 0<br> 333 304 251<br> 324 289 248<br> 325 289 0<br> 383 289 258<br> 381 296 0<br> 417 292 267<br> 417 274 265<br> 413 277 263<br> 405 285 0<br> 407 283 268<br> 407 283 266<br> -122 295 0<br> 88 24 172<br> 89 25 171<br> 86 33 0<br> 392 316 270<br> 393 319 270<br> 391 325 0<br> -44 214 246<br> -44 214 0<br> 140 306 264<br> 140 306 264<br> 146 315 0<br> 118 293 282<br> 118 293 281<br> 129 294 0<br> -25 180 254<br> -25 180 0<br> 106 280 234<br> 108 285 0<br> 318 289 314<br> 319 289 314<br> 352 281 0<br> 160 302 167<br> 157 296 278<br> 166 302 0<br> -19 199 259<br> -19 199 0<br> 116 305 261<br> 236 296 287<br> 237 299 0<br> -122 295 263<br> -122 295 0<br> 21 453 254<br> 21 453 253<br> 22 452 0<br> 26 70 177<br> 26 71 175<br> 27 70 0<br> 312 272 247<br> 312 272 247<br> 570 428 0<br> 558 416 307<br> 558 416 307<br> 608 438 0<br></div><div><br></div><div>Here is the code in qtslib.cpp based out of Qt5.6.3:</div><div>// work around missing coordinates on mouse release<br> if (sample.pressure == 0 && sample.x == 0 && sample.y == 0) {<br> x = m_x;<br> y = m_y;<br> }<br></div><div><br></div><div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">Could you please let me know if there is any known issue of missing mouse release events in Qt 5.6.3 or any known patch available with qtslib in Qt5.6.3</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">or let me know if it would work ignoring the condition sample.x==0 && sample.y==0?</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">Appreciate your feedback in this regard.</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt"><br></span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">Best Regards,</span></div><div><span style="font-family:Calibri,sans-serif;font-size:11pt">Ramakanth</span></div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 15, 2020 at 12:55 PM Ramakanth Kesireddy <<a href="mailto:rama.kesi@gmail.com" target="_blank" rel="noreferrer">rama.kesi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Observed that button(custom QPushButton) is being latched sometimes or stucks at the pressed state and mouseReleaseEvent event is not generated at all.</div><div><br></div><div>The target platform uses Qt v5.6.3 via LinuxFB where <span style="font-family:Calibri,sans-serif;font-size:11pt">FB_DA8XX driver<br> is replaced by </span>LCDC driver in the <span style="font-family:Calibri,sans-serif;font-size:11pt">v4.14 linux kernel built with yocto rocko.</span></div><div><span style="font-size:11pt;font-family:Calibri,sans-serif"><br></span></div><div><span style="font-size:11pt;font-family:Calibri,sans-serif">Based on tests, we found that legacy fb devices
are being able to be used with Qt v5.6.3 via LinuxFB, such as the one
created by the LCDC driver.</span></div><div><br></div><div>Appreciate any suggestions if such behavior is observed specific to Qt 5.6.3 or any feedback why it could occur at times?<br></div><div><br></div><div>Best Regards,</div><div>Ramakanth</div></div>
</blockquote></div>
</blockquote></div></div></div>