Fwd: Re: mobile ui
Sebastian Kügler
sebas at kde.org
Thu Dec 3 14:26:24 PST 2015
On Thursday, December 03, 2015 14:04:50 Dirk Hohndel wrote:
> > > I knew my fix was too easy
> >
> > You could try hooking up this guy
> > http://doc.qt.io/qt-5/qquickitem.html#geometryChanged
> >
> >
> >
> > to the second part of setDiveId(), so the geometry of the hidden
> > profilewidget gets updated. Not sure if that helps with the race, though,
> > but it could even be tried to force (in render(), checking if the size is
> > still synced, and potentially calling profileWidget->setGeometry(...)
> > first before painting.
> I remember Tomaz telling me to be very very careful what I call from
> within paint. Both for performance issues but also for infinite
> recursions.
Thinking about it, it would probably be easier to resize the profileWidget from
that virtual.
--
sebas
Sebastian Kügler | http://vizZzion.org | http://kde.org
More information about the subsurface
mailing list