From kde-bindings Sat Mar 09 00:33:15 2013 From: Arno Rehn Date: Sat, 09 Mar 2013 00:33:15 +0000 To: kde-bindings Subject: Re: [Kde-bindings] Smoke: Where is QString? Message-Id: <513A834B.3020307 () arnorehn ! de> X-MARC-Message: https://marc.info/?l=kde-bindings&m=136278921103349 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 > >> 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