<div dir="ltr">Hey all,<div><br></div><div>It seems <a href="https://doc.qt.io/qt-5/qimage.html#setAlphaChannel">QImage::setAlphaChannel</a> was <a href="https://forum.qt.io/topic/121460/qimage-setalphachannel-obsolete-or-not">un-deprecated in Qt 5.15</a>, but it's missing from the 5.15.2 wheels:</div><div><pre class="gmail-markdown-highlight" style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;padding:9.5px;margin-top:1rem;margin-bottom:10px;line-height:1.42857;word-break:break-all;color:rgb(51,51,51);border:none;border-radius:0px;max-height:350px"><code class="gmail-language-python gmail-hljs" style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:inherit;padding:0.5em;color:black;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;border-radius:0px;display:inline-block;overflow-x:auto;min-width:100%"><span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span><span class="gmail-hljs-keyword" style="box-sizing:border-box;color:rgb(0,0,136)">from</span> PyQt5 <span class="gmail-hljs-keyword" style="box-sizing:border-box;color:rgb(0,0,136)">import</span> QtCore, QtGui
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>i = QtGui.QImage(<span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">"/tmp/front3.jpg"</span>)
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>m = QtGui.QImage(<span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">"/tmp/mask.png"</span>)
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>m = m.convertToFormat(QtGui.QImage.Format_Alpha8)
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>i.setAlphaChannel(m)
Traceback (most recent call last):
  File <span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">"<stdin>"</span>, line <span class="gmail-hljs-number" style="box-sizing:border-box;color:rgb(0,102,102)">1</span>, <span class="gmail-hljs-keyword" style="box-sizing:border-box;color:rgb(0,0,136)">in</span> <module>
AttributeError: <span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">'QImage'</span> object has no attribute <span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">'setAlphaChannel'</span>
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>QtCore.QT_VERSION_STR
<span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">'5.15.2'</span>
<span class="gmail-hljs-meta" style="box-sizing:border-box;color:rgb(0,102,102)">>>> </span>QtCore.PYQT_VERSION_STR
<span class="gmail-hljs-string" style="box-sizing:border-box;color:rgb(0,136,0)">'5.15.2'</span></code></pre></div></div>