[Qt-interest] draw a pixmap with a table
Stefanos Antaris
santaris at csd.auth.gr
Fri May 15 16:07:47 CEST 2009
Samuel Rødal wrote:
> Stefanos Antaris wrote:
>> Hello.I am going to receive a 2 dimension table which is going to
>> have unsigned char on each cell.Every cell is going to show me the
>> brightness of the pixels.Now i found that QPixmap can do that but i
>> can't manage it.Can anyone help me how could i draw a widget with
>> that table?With QPixmap or something else?Thanks.
>
> Use QImage when you need to manipulate individual pixels. A QImage
> with format QImage::Format_Indexed8 seems to be exactly what you need.
>
> --
> Samuel
>
Ok this might seem fool.But i have never used QImage before.I don't know
how to show the QImage on my app.I mean using a QLabel,a
QPixmap?What?How could i show the qt assistant examples.
More information about the Qt-interest-old
mailing list