[Gambas-user] qt4 draw error
Benoît Minisini
gambas at ...1...
Sun Jan 3 23:16:33 CET 2010
> > I believe I have found a qt4 bug. Here is a very simply gambas 3 (svn
> > current to 1/2/10), this works perfectly find and as expected if i switch
> > to gtk.
> >
> > Error is, and it only outputted to the gambas console:
> >
> > QPainter::begin: Widget painting can only begin as a result of a
> > paintEvent QPainter::setBackground: Painter not active
> > QPainter::pen: Painter not active
> > QPainter::setPen: Painter not active
> > QPainter::brush: Painter not active
> > QPainter::setBrush: Painter not active
> >
> > gambas program:
> > Public Sub Button1_Click()
> > Draw.Begin(DrawingArea1)
> > Draw.Line(1, 130, 500, 400)
> > Draw.End
> > End
> >
> > DrawingArea1 is locked on the main form.
> >
> > Thanks
> > Andy
>
> It's not a Qt4, it's by design: they forbid drawing on a widget outside of
.
/|\
|
bug -------------'
--
Benoît Minisini
More information about the User
mailing list