Today I worked on the selector of line widths. I replaced the QDoubleSpinBox by this selector for layer creation and added it in the toolbar for individual entity selection.
This time I didn't have problems with MetaInfo and using the add function worked.