Skip to content
QtWS25 Last Chance
  • Creating QImage from raw uchar pointer

    Unsolved General and Desktop qimage bytesperline linestride
    6
    0 Votes
    6 Posts
    2k Views
    H
    Back when I was using char table to modify QImage on QT 4, each pixel was stored using 4 unsigned chars (Red, Green, Blue, transparency). I imagine it's still stored that way, so 10th pixel was represented by ptr[40], ptr[41], ptr[42] and ptr[43]. Perhaps that's where your problem lies.