[Kde-bindings] Smoke: Where is QString?
Arno Rehn
arno at arnorehn.de
Sat Mar 9 00:33:15 UTC 2013
On 08/03/13 23:42, Chris Burel wrote:
> I wrote
> http://techbase.kde.org/Development/Languages/Smoke/API_Documentation a few
> years ago, but I think it is still relevant, and a good place to start for
> people new to smoke.
Yep, this documents the API quite nicely.
http://techbase.kde.org/Development/Languages/Smoke also has a more
complete example that illustrates how to create a simple application
with SMOKE.
> QString is not included, because the thought is that any QString instance
> would be marshalled to whatever string class is native to the target
> language. So, if you were in Perl, you'd never make a QString instance
> directly. Instead, you'd pass a native Perl string to a method expecting a
> QString, and the bindings would take care of converting that to a QString.
I'm actually considering adding QString back in. That wouldn't prevent
marshalling, but languages without proper string classes can still make
use of QString (thinking of the QtLua bindings here, which had some
hacks in place to get QString back).
>
> 2013/3/6 Glenn Rogers <iglennrogers at gmail.com>
>
>> I'm thinking about writing a binding using smoke, but in my test example
>> I'm trying to create a QString. Where can this be found, since it it
>> doesn't seem to be in smokeqtcore? It's not in the *classMap* members,
>> nor can I spot anything relevant in *methods*.
>>
>> Can anyone help?
>>
>> As an aside, has anyone written/know of any articles about writing a
>> binding using Smoke?
>>
>>
>> Thanks
>>
>> Glenn
>>
>>
>> _______________________________________________
>> Kde-bindings mailing list
>> Kde-bindings at kde.org
>> https://mail.kde.org/mailman/listinfo/kde-bindings
>>
>>
>
>
>
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
--
Arno Rehn
More information about the Kde-bindings
mailing list