From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p8M9vU5m009098 for ; Thu, 22 Sep 2011 11:57:30 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnMCAP8Ee07RVdivkGdsb2JhbABChFyUcIcVAYYzYggUAQEBAQkJDQcUBCKBbAIMIAEbHgMSCQddAREBBQFXh1yVQIJYCop9BkeCXIUgO4htAgMGhWSBEwSCVIUXhGSHAY0FPYNy X-IronPort-AV: E=Sophos;i="4.68,422,1312149600"; d="scan'208";a="120900885" Received: from mail-qy0-f175.google.com ([209.85.216.175]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 22 Sep 2011 11:57:25 +0200 Received: by qyk10 with SMTP id 10so17648305qyk.6 for ; Thu, 22 Sep 2011 02:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=LCoA2okh+7SzXYzfF3oWFVZOsxPxz6LGA+ukbIcxfCE=; b=ENWkagKVcdvFjlL4nj0bkU1HcQp2yseeDbhFjuxRvoLFZobvLuX6DxwGww75WOlodK 9lLS3FPoSmu3xamxra4zNcdl2DZTAP/IG3NQO+nqfNkLwF2qE2FJYpGjy/Mi2TIFHS/g 6m8hYmcS7DQbjmB8DjUS9jY23G2wFgZJ31lvU= MIME-Version: 1.0 Received: by 10.229.90.67 with SMTP id h3mr1583054qcm.95.1316685444072; Thu, 22 Sep 2011 02:57:24 -0700 (PDT) Received: by 10.229.44.137 with HTTP; Thu, 22 Sep 2011 02:57:24 -0700 (PDT) Date: Thu, 22 Sep 2011 13:57:24 +0400 Message-ID: From: Kakadu To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0016364ee4f22cc65304ad84b8d9 Subject: [Caml-list] lablqt = OCaml + qt --0016364ee4f22cc65304ad84b8d9 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hello! I'm working on Qt bindings for OCaml. You can browse my code at https://github.com/Kakadu/lablqt Now qtjambi parses Qt's header files and generates an XML representation of API. Then binding generator generates OCaml and C++ code of bindings. Now a big part of Qt's API is stored in aaa.xml, so you don't need to install qtjambi's generator. Big part of QtCore =C9 QtGui is incapsulated in this xml file. You can use build.ml script to compile lablqt. Btw, lablqt depends on janestreet's core_extended library. You can see test examples in test_gen/test* directories. For examle: https://github.com/Kakadu/lablqt/blob/master/test_gen/test5/main.ml I've implemented almost type-safe connections from signals to slots. Also I've created tool to simplify creating of user-defined slots: you can connect them like here and write your code separately =2E Lablqt is compilable only on a few number of machines, so I'll be glad if you test it on your computer. It's difficult to me to decide in what direction Qt bindings should be developed. I you have any ideas or recommendations, I'll be glad to read them. Best wishes, Kakadu --0016364ee4f22cc65304ad84b8d9 Content-Type: text/html; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hello!

I'm working on Qt bindings for OCaml. You can browse my c= ode at https://github.com/Kaka= du/lablqt

Now qtjambi parses Qt's header files and generates= an XML representation of API. Then binding generator generates OCaml and C= ++ code of bindings.

Now a big part of Qt's API is stored in aaa.xml, so you don't n= eed to install qtjambi's generator. Big part of QtCore =C9 QtGui is inc= apsulated in this xml file.

You can use = build.ml script to compile lablqt. Btw, lablqt depends on janestreet= 9;s core_extended library.

You can see test examples in test_gen/test* directories. For examle: https://github.com/Kakadu/lablqt/blob/master/test_gen/test5/main.ml<= br>
I've implemented almost type-safe connections from signals to slots= . Also I've created tool to simplify creating of user-defined slots: you can conn= ect them like here=9A=9A and write your code sepa= rately .

Lablqt is compilable only on a few number of machines, so I'll be g= lad if you test it on your computer.

It's difficult to me to dec= ide in what direction Qt bindings should be developed. I you have any ideas= or recommendations, I'll be glad to read them.

Best wishes,
Kakadu
--0016364ee4f22cc65304ad84b8d9-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pAOE4FAn027278 for ; Thu, 24 Nov 2011 15:04:15 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmMBAElOzk7RVdgvk2dsb2JhbABDqmoIIgEBAQEJCQsJFAQhgWkFBAEBAQQSAiwBGx4DDAYFAwEHOyIBEQEFARwzCIUmgjUQl1gKi2OCZoUPPYhxAgEECodDgxUEiBuFB4MKhB6NWD2Dew X-IronPort-AV: E=Sophos;i="4.69,565,1315173600"; d="scan'208";a="120724322" Received: from mail-qw0-f47.google.com ([209.85.216.47]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Nov 2011 15:04:10 +0100 Received: by qadb10 with SMTP id b10so4105729qad.6 for ; Thu, 24 Nov 2011 06:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0/+u5aq2h/s9tRsy+OgbvcwjXgoRcdTHTsFl1cXOsIY=; b=cNNuY0FsMIJKWEXEDUVqpPiXS8yhkBAM54Jo3T29yU5AXJtcRdOlve1ldTKu/8ypQ3 +yaEyahsFxu+sp5NMYQt6E8FPHkWXYfGJ3Nzdd4zWjqqzOKJx00Rctfl5Npetpn5NqiL wkf+Ch14GGdr86Cqp0sPcCgX+hYWcpw24LqKU= MIME-Version: 1.0 Received: by 10.224.210.130 with SMTP id gk2mr13145433qab.23.1322143449433; Thu, 24 Nov 2011 06:04:09 -0800 (PST) Received: by 10.229.218.193 with HTTP; Thu, 24 Nov 2011 06:04:09 -0800 (PST) In-Reply-To: References: Date: Thu, 24 Nov 2011 18:04:09 +0400 Message-ID: From: Kakadu To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=20cf300fad4da5445204b27b82e6 Subject: [Caml-list] Re: lablqt = OCaml + qt --20cf300fad4da5445204b27b82e6 Content-Type: text/plain; charset=ISO-8859-1 Hello Bad news: it seems that lablqt is in decadance. I'm still planning to implement inheritance (described here), but there are some problems with proof-of-concept app. It shows a widget and after pressing any key it crashes while calling caml_send0 function (autogenerated function for calling methods of ocaml objects. see ocaml sources) I will be glad if you will discuss this way of implementing inheritance, or give me a tip about crash. Best wishes, Kakadu --20cf300fad4da5445204b27b82e6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello

Bad news: it seems that lablqt is in decadance. I'm still = planning to implement inheritance (described here), but there are some problems with= proof-of-concept app. It shows a widget and after pressing any key it crashes whil= e calling caml_send0 function (autogenerated function for calling methods o= f ocaml objects. see ocaml sources)

I will be glad if you will discuss this way of implementing inheritance= , or give me a tip about crash.

Best wishes,
Kakadu
--20cf300fad4da5445204b27b82e6-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pAOEpLXX029360 for ; Thu, 24 Nov 2011 15:51:21 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak4FAIdZzk7VuiYS/2dsb2JhbABDhDJQozyCNIEFgXIBAQUMF1YQCQIaAiYCAiwrBi2HbaMKkW4SgR6IHIEWBJAslio X-IronPort-AV: E=Sophos;i="4.69,565,1315173600"; d="scan'208";a="132469293" Received: from solaria.dimino.org ([213.186.38.18]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 24 Nov 2011 15:51:00 +0100 Received: from arrakis (localhost.localdomain [127.0.0.1]) by solaria.dimino.org (Postfix) with ESMTP id 3D9BC80089; Thu, 24 Nov 2011 15:51:00 +0100 (CET) Received: by arrakis (Postfix, from userid 1000) id 7C21411F280; Thu, 24 Nov 2011 15:50:58 +0100 (CET) Message-ID: <1322146258.32530.5.camel@arrakis> From: =?ISO-8859-1?Q?J=E9r=E9mie?= Dimino To: Kakadu Cc: caml-list@inria.fr Date: Thu, 24 Nov 2011 15:50:58 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3-2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id pAOEpLXX029360 Subject: Re: [Caml-list] Re: lablqt = OCaml + qt Hi, Le jeudi 24 novembre 2011 à 18:04 +0400, Kakadu a écrit : > Bad news: it seems that lablqt is in decadance. I'm still planning to > implement inheritance (described here), but there are some problems > with proof-of-concept app. It shows a widget and after pressing any > key it crashes while calling caml_send0 function (autogenerated > function for calling methods of ocaml objects. see ocaml sources) In classes.ml, lines 23, you expect x0 to be an OCaml object (of type qKeyEvent), but in AA.cpp, line 28, you call the keyPressEvent method with argument _ev which is just a value of type "[`qobject] obj" and not an OCaml object. This is why it crashes. -- Jérémie