QImage.fromHICON missing

Phil Thompson phil at riverbankcomputing.com
Sun Dec 4 10:26:27 GMT 2022


On 29/11/2022 16:12, Kovid Goyal wrote:
> Hi Phil,
> 
> QImage::fromHICON seems to not be wrapped.
> 
> python -c "from PyQt6.QtGui import QImage; QImage.fromHICON"
> 
> AttributeError: type object 'QImage' has no attribute 'fromHICON'
> 
> This is using a custom compiled Qt6 and PyQt6. Is there something
> special I need to have this static function available? It's part of the
> QImage non-deprecated API
> https://doc.qt.io/qt-6/qimage.html#fromHICON

PyQt5 defines HICON as an opaque type. Is this sufficient for your 
usage?

Phil


More information about the PyQt mailing list