Christian A. Reiter
chris.reiter at gmx.at
Tue Feb 16 19:51:32 UTC 2010
Am 2010-02-16 19:38, schrieb Arno Rehn:
> On Tuesday 16 February 2010 18:09:05 Christian A. Reiter wrote:
>> Am 2010-02-16 09:57, schrieb Arno Rehn:
>>> The .NET framework offers other methods of string manipulation, like
>>> String.Format() which is similar to QString::arg(). A List<T> also offers
>>> a broader range of methods than a simple QList (thinking about LINQ
>> Ok, understand.
>> And is there a reason why in Qyoto the setter and getter methods (e.g.
>> ::setText(QString &text) and ::text()) are not mapped to a C# Property
>> "Text" (with an internal getter and setter)?
>> ist this planned?
> It's already done, at least for methods used in Q_PROPERTIES. It's a bit hard
> to do it for the other methods as well, because some of them are virtual, some
> are missing the getter or the setter, some take more than one argument.
I'm not that experienced, but would it be a dirty hack to create
Properties for all methods that start with "set" and end with a word
that exists as method as well? void ::setText(QString), string ::text();
--> string Text;
But yes, this would only work for one argument.
More information about the Kde-bindings