If I understand your question, there's no need to remove/add the component - just change the QTransform. Everything will update using magic.
--- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney <https://twitter.com/asmaloney> On Wed, Apr 5, 2017 at 2:50 PM, Igor Mironchik <igor.mironc...@gmail.com> wrote: > Hello guys, > > Is it normal practice? > > removeComponent( d->m_transform ); > > d->m_transform->setScale( 0.5f ); > > addComponent( d->m_transform ); > > If I want to apply changed transformation... > > Or for such tasks there is a better solution? > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest