[Gambas-user] qt4 draw error
Dr.Diesel
dr.diesel at ...626...
Sun Jan 3 23:16:10 CET 2010
Benoît Minisini wrote:
>
> It's not a Qt4, it's by design: they forbid drawing on a widget outside of
> a
> paint event, so that Qt4 code remains the same between X11, Windows and
> MacOSX.
>
> I think in the future I will enforce the same policy in Gambas for gb.gtk.
>
> There is no need of drawing on a widget outside of its paint event.
>
> Regards,
>
> --
> Benoît Minisini
>
>
Not sure I understand, you mean like this:
Public Sub DrawingArea1_Draw()
Paint.Rectangle(1, 130, 500, 400)
Paint.End
End
This tells me the "No current Device" but if I add the
paint.begin(DrawingArea1_Draw) then it tells me it is already painting?
Thanks for the reply.
--
View this message in context: http://old.nabble.com/qt4-draw-error-tp27005884p27006128.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list