[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Shadow around widget border in PyQt..
From:       Goku Balu <tfa.signup.test1 () gmail ! com>
Date:       2016-08-30 13:17:28
Message-ID: CAP61OK3V4+wsSPDVLkafgs__++witqE0m1sbxVhBYwe3h=BJ-Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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?

Any help in this regard will be helpful.

Thanks

On Tue, Aug 30, 2016 at 6:09 PM, michael h <michaelkenth@gmail.com> wrote:

>  errors as missing modules QGraphicsEffect.distance() and
>> QGraphicsEffect.qt_blurImage(blurPainter, tmp, blurRadius(), False, True)
>>
>>
> distance is defined in the example you are trying to port:
>
>     inline void setDistance(qreal distance) { _distance = distance; updateBoundingRect(); }
>     inline qreal distance() const { return _distance; }
>
>
>  and qt_blurImage is not a method on QGraphicsEffect. I'm not sure it's
> even available in PyQt4...
>

[Attachment #5 (text/html)]

<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">&lt;<a \
href="mailto:michaelkenth@gmail.com" \
target="_blank">michaelkenth@gmail.com</a>&gt;</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,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,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,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,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&#39;m not sure it&#39;s even available in PyQt4...</span></div></div></div></div> \
</blockquote></div><br></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic