QT Class for Primitive Text?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
RJM1987
Posts:11
Joined: Mon Feb 24, 2020 5:06 am

QT Class for Primitive Text?

Post by RJM1987 »

Is there a QT class available to style primitive text objects? (and if not, why not..?)

The v3.17 documentation doesn't mention any QT classes for primitive text, but then it's also missing a QT class that is available (QLabel). So now we can't be confident OA's QT documentation is complete :?

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: QT Class for Primitive Text?

Post by adaneau »

Hi,

Primitive text is a similar to geo shapes (rectangle, circle, line) and cannot be styled using QSS afaik. Those are basically drawing and no QWidgets...

BR
Alex

RJM1987
Posts:11
Joined: Mon Feb 24, 2020 5:06 am

Re: QT Class for Primitive Text?

Post by RJM1987 »

Thanks for the reply Alex, if Primitive Texts can't be styled then I guess we'll have to explore some alternatives...

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: QT Class for Primitive Text?

Post by gschijndel »

The Label can be used as an alternative

RJM1987
Posts:11
Joined: Mon Feb 24, 2020 5:06 am

Re: QT Class for Primitive Text?

Post by RJM1987 »

Thanks, note however the Label is not always a valid alternative - whilst it does have more styling options, Labels don't seem to have a native "Ellipsis Mode" property, whilst primitive texts do have this feature.

5 posts • Page 1 of 1