This is my first post so hello to everybody
I't trying to create qt app which will display images from 8 bit RGB buffer.
I tried warious ways to achiewe it, but so far without success. Here is what I've tried :

...
QImage img;
img.loadFromData( (uchar*)myRBGBuffer );
QPixmap pixmap;
pixmap.convertFromImage(img);
...

but this gives me incorrect results - whole pixmap is in one color.
The I tried adding PPM header - "P6 width height nColors", but that did't help also.

My question is - how can I display images from RGB buffer, as fast as possible, avoiding unnecessary conversions - I'm trying to create mobile robot driver ap, so time is crucial.