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.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user