| Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Hi again :) I was wondering what's up with the "user attribute" for properties in Qt jambi. I cannot find a way to determine which property of a given widget is has the user-editable attribute, let alone how to set this attribute on a property in a custom widget. Is this supported already? If it's not, I'm afraid I'll have to make a little, manual, programmatically undesirable and theoretically refutable case switch on the widget class and embaress myself... and I dread to... ;) Best regards, Sander
S. van de Merwe wrote: > Hi again :) > > I was wondering what's up with the "user attribute" for properties in Qt > jambi. I cannot find a way to determine which property of a given widget is > has the user-editable attribute, let alone how to set this attribute on a > property in a custom widget. Is this supported already? If it's not, I'm > afraid I'll have to make a little, manual, programmatically undesirable and > theoretically refutable case switch on the widget class and embaress > myself... and I dread to... ;) This feature is currently supported only for standard Qt Jambi classes. It is a Qt / C++ feature that has snuck itself into the Qt Jambi public API. See the C++ docs for details: http://doc.trolltech.com/4.3/qmetaproperty.html#isUser Unfortunatly, this feature is currently not supported for custom widgets. The good news is that we're working on a QMetaObject abstraction for Qt Jambi for 4.4 which will allow you to specify an annotation that defines which property of the custom widget is the "user" property. Thanks for the report, best regards, Gunnar