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

List:       pykde
Subject:    Re: [PyQt] Creating QSplashScreen with a .gif animation
From:       Itay Brandes <akari.il () gmail ! com>
Date:       2012-07-20 15:57:16
Message-ID: CAFd+rHGt3uQVkL1PW6su_HZk4NJhXoKDBniiVbqKcpZTRWwzDg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


DavidBoddie <http://www.diotavelli.net/PyQtWiki/DavidBoddie> from the #pyqt
irc channel has come with a solution:
http://www.diotavelli.net/PyQtWiki/Movie%20splash%20screen

Thank you all.

On Fri, Jul 20, 2012 at 3:28 PM, Itay Brandes <akari.il@gmail.com> wrote:

> Then what's the right approach to the solution?
>
>
> On Fri, Jul 20, 2012 at 3:15 PM, Hans-Peter Jansen <hpj@urpla.net> wrote:
>
>> Am Friday 20 July 2012 13:55:20 schrieb Itay Brandes:
>> > Here they are.
>> > As you can see, only the first frame is shown, and the others won't
>> > get painted.
>>
>> That's for sure, since you're using a QPixmap to display the gif.
>> That guy did his own QSplashScreen class, where he loads the gif with
>> QMovie, but that approach might lack, too, since QMovie needs the event
>> loop running, which is usually not the case during initialization.
>>
>> Oh well.
>>
>> Pete
>>
>>
>> > Thanks.
>> >
>> > On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen <hpj@urpla.net>
>> wrote:
>> > > Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:
>> > > > Hey,
>> > > > QtGui.QSplashScreen allows to use a static image source for the
>> > > > splash screen, but does not support .gif animations.
>> > > >
>> > > > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?
>> > > > There are many snap-ins in C++, like
>> > > > this<http://www.qtcentre.org/threads/18747-QSplashScreen-loading-
>> > > >icon ?p=92814#post92814>, but I'm unfimiliar with them, and fail
>> > > > to convert them to python correctly.
>> > >
>> > > Seems pretty straight forward. Start over and post your stub
>> > > (including a link to the animated gif..).
>> > >
>> > > Pete
>> > > _______________________________________________
>> > > PyQt mailing list    PyQt@riverbankcomputing.com
>> > > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr"><span title="DavidBoddie @ 157.249.83.68[157.249.83.68]"><a \
href="http://www.diotavelli.net/PyQtWiki/DavidBoddie" title="DavidBoddie @ \
157.249.83.68[157.249.83.68]">DavidBoddie</a></span> from the #pyqt irc channel has come with a \
solution: <a href="http://www.diotavelli.net/PyQtWiki/Movie%20splash%20screen">http://www.diotavelli.net/PyQtWiki/Movie%20splash%20screen</a><br>


<br>Thank you all.<br><br><div class="gmail_quote">On Fri, Jul 20, 2012 at 3:28 PM, Itay \
Brandes <span dir="ltr">&lt;<a href="mailto:akari.il@gmail.com" \
target="_blank">akari.il@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">Then what&#39;s the right approach to the solution?<div><div \
class="h5"><br><br><div class="gmail_quote">On Fri, Jul 20, 2012 at 3:15 PM, Hans-Peter Jansen \
<span dir="ltr">&lt;<a href="mailto:hpj@urpla.net" target="_blank">hpj@urpla.net</a>&gt;</span> \
wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Am Friday 20 July 2012 13:55:20 schrieb Itay Brandes:<br> <div>&gt; \
Here they are.<br> &gt; As you can see, only the first frame is shown, and the others \
won&#39;t<br> &gt; get painted.<br>
<br>
</div>That&#39;s for sure, since you&#39;re using a QPixmap to display the gif.<br>
That guy did his own QSplashScreen class, where he loads the gif with<br>
QMovie, but that approach might lack, too, since QMovie needs the event<br>
loop running, which is usually not the case during initialization.<br>
<br>
Oh well.<br>
<br>
Pete<br>
<div><br>
<br>
&gt; Thanks.<br>
&gt;<br>
&gt; On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen &lt;<a href="mailto:hpj@urpla.net" \
target="_blank">hpj@urpla.net</a>&gt;<br> wrote:<br>
&gt; &gt; Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:<br>
&gt; &gt; &gt; Hey,<br>
&gt; &gt; &gt; QtGui.QSplashScreen allows to use a static image source for the<br>
&gt; &gt; &gt; splash screen, but does not support .gif animations.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?<br>
&gt; &gt; &gt; There are many snap-ins in C++, like<br>
&gt; &gt; &gt; this&lt;<a href="http://www.qtcentre.org/threads/18747-QSplashScreen-loading-" \
target="_blank">http://www.qtcentre.org/threads/18747-QSplashScreen-loading-</a><br> </div>&gt; \
&gt; &gt;icon ?p=92814#post92814&gt;, but I&#39;m unfimiliar with them, and fail<br> \
<div><div>&gt; &gt; &gt; to convert them to python correctly.<br> &gt; &gt;<br>
&gt; &gt; Seems pretty straight forward. Start over and post your stub<br>
&gt; &gt; (including a link to the animated gif..).<br>
&gt; &gt;<br>
&gt; &gt; Pete<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> &gt; &gt; <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> <br>
<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://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