Support of Custom Property in Custom Widget in Designer
-
Hi,
is there any possibility to add/display a custom property in Qt designer for a custom widget. -
What do you mean specifically by a custom property in this case? Do you mean the properties you have added yourself, or do you mean a property with a non-standard type?
-
Let's say i have the following class:
@
class TextPair {
int number;
QString text;
}
@The custom widget has a property of type TextPair.
All i want is in the property editor of that widget a tree like setting:
TextPair- number
- text
It should be very similar to a QString or a QRect property.
Edit: please use @ tags around code sections; Andre
-
As far as I know, that is not possible unfortunately.
-
Unfortunately such a great feature is missing.
Anyway, thanks a lot Andre.
-
Note that that doesn't mean that your widget can't have such a property. Just that you can't set it directly from designer.
-
Thanks for the additional info, but I require it available through the designer for the design team.
[quote author="Andre" date="1363768640"]Note that that doesn't mean that your widget can't have such a property. Just that you can't set it directly from designer. [/quote]