How to cast the returned pointer of uchar * QImage::scanLine(int i) to QRgb?



  • how to cast the returned pointer of
    @
    uchar * QImage::scanLine(int i)
    @

    to QRgb ? the image format is Format_RGB32

    since we cannot do this like in C++
    @
    uchar a = scanLine(i);
    (QRgb
    )a
    @

    in Python and there is no QRgb in PyQt,so what should I do ?

    platform: Pyton3 + PyQt4


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.