<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><font face="Arial" style="font-size: 14px;" class="">Hi,</font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">I trying to code a quick way to scroll over a large number of images (10^6), but Im having trouble in rendering the image properly. </font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">In my attempt I noticed the precence of an artifact when I scroll over the images which is visible inthis screen recording:</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><a href="https://cl.ly/qkul" class=""><font face="Arial" style="font-size: 14px;" class="">https://cl.ly/qkul</font></a></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">I tryied to reduce my code to a minimum working example to reproduce the issue, a gist is available here:</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><a href="https://gist.github.com/epifanio/dab2d8a6b07e889607a313eefa6358d1" class=""><font face="Arial" style="font-size: 14px;" class="">https://gist.github.com/epifanio/dab2d8a6b07e889607a313eefa6358d1</font></a></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">while at this link I stored the whole code including a number of images to facilitate testiing</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><a href="https://nextcloud.epinux.com/index.php/s/Z55puQ9apGXUh6f" class=""><font face="Arial" style="font-size: 14px;" class="">https://nextcloud.epinux.com/index.php/s/Z55puQ9apGXUh6f</font></a></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">The ui is generated with QtDesigner, I can post the ui file as well if useful to debug.</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">From the gif I posted it is possible to notice the rendering bug in tree moments:</font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">- single press of the buttons [<<<] [>>>]</font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">- quick scroll over the zoom slider</font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">- quick scroll over the image-indexer slider</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">If I hold the press on the [<<<] [>>>] the "artifact" is not noticiable.</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">There is also a second (minor) bug, which I don't know if related to the same issu. </font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">The image-index spinbox doesn't refresh when I single press the [<<<] [>>>] buttons, </font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">while its value gets correcctly update when hold press [<<<] [>>>] </font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">(I have to focus with the pointer inside the spin-box to get the value update).</font></div><div class=""><br class=""></div><div class=""><font face="Arial" style="font-size: 14px;" class="">I'm pretty sure there is some bad coding from my side, </font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">perhaps there is a better way to accomplish what I'm tryingto do.</font></div><div class=""><font face="Arial" style="font-size: 14px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">I will really appreciate an help in understanding what I'm doing wrong.</font></div><div class=""><br class=""></div><div class=""><font face="Arial" style="font-size: 14px;" class="">Thanks!</font></div><div class=""><font face="Arial" style="font-size: 14px;" class="">Massimo.</font></div></body></html>