Page 1 of 1

Custom property

Posted: Mon Dec 04, 2017 7:10 pm
by modlem
Hi, coulld you tell me how can I set custom propertie without title ? As general properties.
I use for now he function :
setCustomProperty ( const QString &title,
const QString &key,
const QVariant &value
)
But I don't want to show the title.

Thanks!

Re: Custom property

Posted: Mon Dec 04, 2017 7:21 pm
by sarlaa
A further question related, can I show custom proerties section on the top of property editor ?

Thanks again.

Re: Custom property

Posted: Mon Dec 04, 2017 11:06 pm
by andrew
The "title" is important when storing these properties in DXF/DWG. It translates to an "application" in DXF/DWG spec and is usually "QCAD".

Re: Custom property

Posted: Mon Dec 04, 2017 11:06 pm
by andrew
sarlaa wrote:A further question related, can I show custom proerties section on the top of property editor ?
You'd have to change the way the layout is arranged in PropertyEditor.js

Re: Custom property

Posted: Tue Dec 05, 2017 12:49 pm
by sarlaa
Thanks it's working for changing order.

Re: Custom property

Posted: Tue Dec 05, 2017 2:14 pm
by sarlaa
Hi Adrew,

I come up again with the need to have to set an attribute to an entiy.

Example : RTextEntity
Cause I need to differentiate between my texts dimensions, and other normals texts, for taking them in consideration for conversion units for example.

I'm wondering how I can do that, and without using custom properties (cause this last, I can't hide it).

Thanks again in advance !