[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"><<a href="mailto:akari.il@gmail.com" \
target="_blank">akari.il@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">Then what'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"><<a href="mailto:hpj@urpla.net" target="_blank">hpj@urpla.net</a>></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>> \
Here they are.<br> > As you can see, only the first frame is shown, and the others \
won't<br> > get painted.<br>
<br>
</div>That's for sure, since you'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>
> Thanks.<br>
><br>
> On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen <<a href="mailto:hpj@urpla.net" \
target="_blank">hpj@urpla.net</a>><br> wrote:<br>
> > Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:<br>
> > > Hey,<br>
> > > QtGui.QSplashScreen allows to use a static image source for the<br>
> > > splash screen, but does not support .gif animations.<br>
> > ><br>
> > > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?<br>
> > > There are many snap-ins in C++, like<br>
> > > this<<a href="http://www.qtcentre.org/threads/18747-QSplashScreen-loading-" \
target="_blank">http://www.qtcentre.org/threads/18747-QSplashScreen-loading-</a><br> </div>> \
> >icon ?p=92814#post92814>, but I'm unfimiliar with them, and fail<br> \
<div><div>> > > to convert them to python correctly.<br> > ><br>
> > Seems pretty straight forward. Start over and post your stub<br>
> > (including a link to the animated gif..).<br>
> ><br>
> > Pete<br>
> > _______________________________________________<br>
> > PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> > > <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