QPixmapCache is a good candidate if you want to preload your images. There is already a global cache that gets used anyways when you load QPixmaps from files. You can insert them ahead of time if you want: https://doc-snapshots.qt.io/qtforpython/PySide2/QtGui/QPixmapCache.html When you load your app, you can insert the images. Then as you need them you find them from the cache and it will serve them out of memory.
Using QPainter is the right way to draw a translucent image. Justin On Tue, Jun 26, 2018 at 8:47 PM Panupat Chongstitwattana <panup...@gmail.com> wrote: > By the way I went with QPainter because it's the only way I could find how > to control opacity. Is opacity possible if I use QPixmap? > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/015699b1-1b03-47d8-93b2-ed0551cd2ce8%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/015699b1-1b03-47d8-93b2-ed0551cd2ce8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3XJ_X-rvm-EAOVZtN%3DEtdohUe33co%3DTa4J%2BZFOpzYJqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.