www.digitalmars.com         C & C++   DMDScript  

D - Can I use Qt in D?

reply Dr.Dizel <Dr.Dizel_member pathlink.com> writes:
Any example?
Oct 12 2002
parent reply Jonathan Andrew <jon ece.arizona.edu> writes:
Dr.Dizel wrote:
 Any example?
 
 
Unfortunately since Qt is written for C++, I don't think there is any easy way to use the Qt classes from D. AFAIK, D is unable to call C++ functions, and I don't think there are any wrappers for Qt that allow it to be used by any other language. D can be used with any other toolkit that utilizes plain C functions, as long as you are careful about passing data to them. If someone has more info about this, please let me know. Jon
Oct 13 2002
parent reply Dr.Dizel <Dr.Dizel_member pathlink.com> writes:
In article <3DA9B426.9000909 ece.arizona.edu>, Jonathan Andrew says...

But anybody can port it to D. Who is a volunteer? :)

Unfortunately since Qt is written for C++, I don't think there
is any easy way to use the Qt classes from D. AFAIK, D
is unable to call C++ functions, and I don't think there are any
wrappers for Qt that allow it to be used by any other language.
D can be used with any other toolkit that utilizes plain C functions,
as long as you are careful about passing data to them.

If someone has more info about this, please let me know.

Jon
Oct 14 2002
parent "Steven Shaw" <steven_shaw iprimus.com.au> writes:
You can call C++ using some "extern C" functions written in C++. Some people


    http://qtcsharp.sourceforge.net/

It is based on a Qt C wrapper. It would be a good place to look for
inspiration.

Steve.
Oct 19 2002