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

List:       pykde
Subject:    Re: [PyQt] PyQt5.5.1
From:       Simon Dible <simon.dible () gmail ! com>
Date:       2015-09-27 22:24:08
Message-ID: CAFw0wEcv7ododT-8NpGahi94mbQuKNb_c4N3_-zYkuELxSSDnw () mail ! gmail ! com
[Download RAW message or body]

> Thanks for the suggestion. I'm using the static build QT ship for
> windows in their installer. I've just taken the C++  example
> "examples/Qt-5.5/widgets/widget/movie" and added in a resource file,
> added in my animation.gif file to it and made that load on startup,
> this displays fine on Android.  I therefore assume my libraries are
> OK, unless i could have broken the static pyqt build?


It turns out that if I just use the resource string directly as shown
in the comments of qrc_pyqtdeploy.cpp, without and de-reference
relative to my script (as suggested on
pyqt.sourceforge.net/Docs/pyqtdeploy/pyrcc.html   ) then it works for
Android and Linux (I've not tested anything else)
e.g.
icon.addPixmap(QtGui.QPixmap(":/resources/ic_launcher.png"),

As a side note it turns out android takes the icon for the main window
from the apk logo and not what setWindowIcon sets, but my button icons
now work.

Thanks for your time and suggestions.

Simon
_______________________________________________
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