<div dir="ltr"><div>Some time ago I posted on StackOverflow ( <a href="https://stackoverflow.com/a/60895316/2001654">https://stackoverflow.com/a/60895316/2001654</a> ) a "hacky" way to use the qt_blurImage function that is internally used by Qt for graphics effects and other things.</div><div><br></div><div>It basically uses ctypes to access the function in the QtWidgets library, the implementation is a bit sketchy, but it works.<br></div><div><br></div><div>While checking it again, as a user had problems accessing the function in Qt6, I stumbled upon the QLibrary class, and I was wondering if I could use it instead.</div><div><br></div><div>Unfortunately, while the library loads and resolve() properly gets access to the function, it returns a voidptr which obviously is not callable.<br><br></div><div>I have limited experience with SIP (I only used it on very few occasions and with simple castings), so maybe the solution is quite simple, but I really don't know how to make that pointer to a callable function - or even if it's possible.</div><div><br></div><div>Also, I assume that the arguments would still be ctypes, right? If that's the case, there would be no real benefit in using QLibrary, I suppose.</div><div><br></div><div>Still, it would be interesting to know if it could be used and how.<br></div><div><br></div><div>Thanks,</div><div>Maurizio<br></div><div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div></div></div>