[MeeGo-touch-dev] how to use QPainter on meego

dianming hu dianming.hu at gmail.com
Mon Sep 27 01:44:10 PDT 2010


Hi,

thanks a lot for your help.

i know how to use QPainter with QWidget;
but now i want to use it with QGraphicsWidget,
QGraphicsWidget is not one of QPaintDevice,
so i can not paint my pictures on MImageWidget(QGraphicsWidget),
only can be used is MImageWidget::setImage(QImage) and
MImageWidget::setPixmap(QPixmap) , but that methods is very poor in
efficiency.

thanks!


2010/9/27 서영진 <valentis at chollian.net>

> hi.
> If you want to use QPainter on QWidget, you should use it in
> QWidget::paintEvent(QPaintEvent*) function.
> You can check it on nokia web page.
> http://doc.trolltech.com/4.7/qwidget.html#paintEvent
>
> Yours sincelary
>
>
>
> --------------- Original message -------------
> From : dianming.hu at gmail.com
> To : meego-touch-dev at meego.com
> CC : @
> Date : Mon, 27 Sep 2010 14:46:41 +0900 (KST), Mon, 27 Sep 2010 13:46:35
> +0800
> Subject : [MeeGo-touch-dev] how to use QPainter on meego
>
> Hi,
>
> I have to use QPainter in the MImageWidget(QGraphicsWidget) to play
> continuous QImage, i had try a lot, but it's still not worked,� if you know
> about that, please do me a favor, thanks a lot!
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.meego.com/pipermail/meego-touch-dev/attachments/20100927/c31acf96/attachment.html>


More information about the MeeGo-touch-dev mailing list