[Clam-devel] QPainter bug also found! (was: QGV canvas bug resolved?)
alfscorza at gmail.com
Mon Jul 27 07:40:38 PDT 2009
David! ... definitely you are a crack!
Now not only solve the problem with the background, also all the mistakes
that had with the Painter.
The changes already made and now we can make the merge!
As always, the latest screenshots are on page:
~ Angelo Scorza ~
"El que no posee el don de maravillarse ni de entusiasmarse más le valdría
estar muerto, porque sus ojos están cerrados." A. Einstein.
2009/7/25 David García Garzón <david.garcia at upf.edu>
> Angelo, i found the last bug to be fixed before the merge. We were blocking
> behaviour as we suspected, but not just for a single event but for any
> When we changed the widget inheritance from QWidget to QGraphicsView we
> to update some Super-like calls we did in NetCanvas::event() method.
> of calling QNetworkCanvas::event, we still called QWidget::event so any
> was redirected ignoring QGV overrides. That bug explains most of the QGV
> polstergeists we found during the migration including failing experiments
> forced us to do some nasty kludges. After changing that, the paint function
> called just once, the frame is drawn again, the movement stops flickering
> all seems faster and shiny...
> Still the embeded widgets are missplaced when the container processings are
> out of the view. This is because QGV don't redraw the boxes of the items
> are outside and the box draw is the function which places the embeded
> We could fix that by replacing them outside the items painting but we can
> until the merge, and then just port the embeded widgets to QGWidgetProxy.
> So, fix those two bugs, (setting the viewport background and calling
> QGV::event) and we are ready for the merge. :-)
> A Divendres, 24 de juliol de 2009 19:17:15, David García Garzón va
> > Angelo, i guess i found a solution to the QGV childs' background issue.
> > Just setting the setStylesheet("background-color: transparent") to the
> > viewport() instead of the QGraphicsView. Being the menus, embeded
> > scrollbars... childs of the QGV they inherit the transparent background
> > color even being toplevel widgets. If we set the background of the
> > instead, we get the intended effect (let the background as it was) but
> > other child widgets are kept ok.
> > I didn't commit because i am working on a newer version of Qt, and maybe
> > doesn't work for yours, so, please test it on your version and commit it
> > yourself when you are done.
> David García Garzón
> (Work) dgarcia at iua dot upf anotherdot edu
> http://www.iua.upf.edu/~dgarcia <http://www.iua.upf.edu/%7Edgarcia>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the clam-devel