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

List:       kde-bindings
Subject:    Re: [Kde-bindings] Smoke: Where is QString?
From:       Chris Burel <chrisburel () gmail ! com>
Date:       2013-03-08 22:42:22
Message-ID: CAPOisTsYfwPBf5WscgOd=7bFOuHOiqf+9e8vd0ht+BPoDc6uuQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

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.


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
>
>

[Attachment #5 (text/html)]

<div dir="ltr">I wrote <a \
href="http://techbase.kde.org/Development/Languages/Smoke/API_Documentation">http://techbase.kde.org/Development/Languages/Smoke/API_Documentation</a> \
a few years ago, but I think it is still relevant, and a good place to start for \
people new to smoke.<br> <br>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&#39;d never make a QString instance directly. \
Instead, you&#39;d pass a native Perl string to a method expecting a QString, and the \
bindings would take care of converting that to a QString.<br> </div><div \
class="gmail_extra"><br><br><div class="gmail_quote">2013/3/6 Glenn Rogers <span \
dir="ltr">&lt;<a href="mailto:iglennrogers@gmail.com" \
target="_blank">iglennrogers@gmail.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> I&#39;m thinking about writing a binding using smoke, but in \
my test example I&#39;m trying to create a QString. Where can this be found, since it \
it doesn&#39;t seem to be in smokeqtcore? It&#39;s not in the <i>classMap</i> \
members, nor can I spot anything relevant in <i>methods</i>.<br>

<br>Can anyone help?<br><br>As an aside, has anyone written/know of any articles \
about writing a binding using Smoke? <br><br><br>Thanks<span class="HOEnZb"><font \
color="#888888"><br><br>Glenn<br><br> \
</font></span><br>_______________________________________________<br> Kde-bindings \
mailing list<br> <a href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-bindings" \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
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