Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. 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?

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 Posters 1.3k Views 1 Watching
  • 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 Offline
    R Offline
    redstoneleo
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved