Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Language Bindings
    1
    1
    1159
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      redstoneleo last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post