[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Smoke: Where is QString?
From:       Arno Rehn <arno () arnorehn ! de>
Date:       2013-03-09 0:33:15
Message-ID: 513A834B.3020307 () arnorehn ! de
[Download RAW message or body]

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@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@kde.org
>> https://mail.kde.org/mailman/listinfo/kde-bindings
>>
>>
>
>
>
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings@kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>


-- 
Arno Rehn
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic