[Gambas-devel] DrawingArea, SetFocus, BUG ?
Christian Faure
christian.faurebouvard at ...156...
Mon Oct 25 00:51:41 CEST 2004
El Domingo, 24 de Octubre de 2004 11:02, Benoit Minisini escribió:
> On Thursday 21 October 2004 13:38, Christian Faure wrote:
> > Hi Benoit,
> >
> > Working on a ReportDesigner, i get somes problems:
> >
> > The IDE of ReportDesigner work creating and placing objects in a
> > ScrollView using a toolbox and allow drag and drop to move objects.
> >
> > These objects are DrawingArea's
> >
> > I call a DrawingArea.SetFocus() function to enable each object to handle
> > keyboard events.
> >
> > All work ok, except when i move an object outside of visible area and
> > this object lose focus, then app crash with:
> > QPainter::begin: Cannot paint null pixmap
> > QPainter::setWorldMatrix: Will be reset by begin()
> >
> > Attached file provide a small example of the problem
> >
> > Thanks
>
> I found the bug: when the drawing area is not visible, qt sends a paint
> event with a null width and height, which is a case I didn't test.
>
> Here is a patch that solves the problem.
>
> Regards,
Thanks !!
In few days, alfa version of DBReportDesigner and DBReportViewer
available... :-)
Regards,
Christian Faure
More information about the Devel
mailing list