<div dir="ltr"><div><div>Thanks for the reply Micheal. Yes I can write my own setDistance method in Python. But do we have any other methods that produces the same output as qt_blurimage in PyQt4?<br><br></div>Any help in this regard will be helpful.<br><br></div>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 6:09 PM, michael h <span dir="ltr"><<a href="mailto:michaelkenth@gmail.com" target="_blank">michaelkenth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><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"><div> errors as missing modules QGraphicsEffect.distance() and QGraphicsEffect.qt_blurImage(b<wbr>lurPainter, tmp, blurRadius(), False, True)<br><br></div></div></blockquote><div><br></div></span><div>distance is defined in the example you are trying to port:</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;background-color:rgb(239,240,241);color:rgb(57,51,24);word-wrap:normal"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;white-space:inherit"><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">    </span><span style="margin:0px;padding:0px;border:0px;color:rgb(16,16,148)">inline</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(16,16,148)">void</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> setDistance</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">(</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">qreal distance</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">)</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">{</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> _distance </span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">=</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> distance</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">;</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> updateBoundingRect</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">();</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">}</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">
    </span><span style="margin:0px;padding:0px;border:0px;color:rgb(16,16,148)">inline</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> qreal distance</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">()</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(16,16,148)">const</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">{</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(16,16,148)">return</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> _distance</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">;</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">}</span></code></pre></div><div><br></div><div> and <span style="font-size:12.8px">qt_blurImage is not a method on QGraphicsEffect. I'm not sure it's even available in PyQt4...</span></div></div></div></div>
</blockquote></div><br></div>