[Development] text component seem too weight

liang sd.foolegg at gmail.com
Wed Sep 19 12:00:53 CEST 2012


yes, this is my want! thanks for you reply!
and I has another question, why text component has not 'delete' function,
just 'cut', it will replace clipboard content and sometime I don't want it.
will text add more operation api for more flexible usage?
On Sep 19, 2012 4:30 PM, "Jiang Jiang" <gzjjgod at gmail.com> wrote:

> Hi Liang,
>
> On Wed, Sep 19, 2012 at 10:16 AM, liang <sd.foolegg at gmail.com> wrote:
> > I read the source, every text component has a QTextDocument object,
> > and it support full-function document layout, It seem too weight for a
> > text component.
> >
> > for most time, I just use text component with one-line (or one-word),
> > like text-label in a video game, It is very simple, and will be made a
> > mass of instance, every component has a QTextDocument let me feel
> > serious :[
> >
> > so, a more light-weight text component seem be fine for some user like
> > me, any one interest about it?
> >
> > ps: I has tried to write this component for my usage, but I want use
> > distence-field, It must use private api, no document and hard to
> > write, any kindly advice? :P
>
> The Text element only uses QTextDocument when its content contains
> rich text, otherwise it uses distance-fields based QQuickTextNode to
> handle plain text. I believe that's what you wanted.
>
> There is a plan to open QQuickTextNode API for public, but I don't
> know about the details.
>
> - Jiang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120919/e1f5f877/attachment.html>


More information about the Development mailing list