[Interest] custom qtquick c++ component text rendering

Railway Coder railwaycoder at gmail.com
Thu Feb 20 09:34:09 CET 2014


Hi,
can you provide me a small piece of code how you create the qml Text inside
the polish function?

Thanks,
Railwaycoder
Am 19.02.2014 22:03 schrieb "Unai IRIGOYEN" <u.irigoyen at gmail.com>:

> Hi,
> You can use QQuickItem::polish() and QQuickItem::updatePolish() to
> instantiate
> and maintain QML Text elements. That's the way I do and it works pretty
> well.
>
> Best regards.
>
> --
>
>
> Unai IRIGOYEN
>
> Le mercredi 19 février 2014 21:51:06, Railway Coder a écrit :
> > Hello,
> >
> > I've made my own QtQuick component by sub classing QtQuickItem.
> > Rendering lines, rectangles and so on with QSGNode works fine.
> >
> > Now, I want to add some text rendering. I don't want to use qpainteditem
> > for that.
> > I think there must be a new QSG related way to do this.
> >
> > Any ideas? I've searched the documentation of Qt5.2 without luck.
> >
> > Thanks and Best Regards,
> > railwaycoder
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140220/33d609a3/attachment.html>


More information about the Interest mailing list