From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9cbf0ee0e735fd86 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!newsfeed.stueberl.de!feed.news.tiscali.de!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Trolltech's QT library and Ada References: <1110036078.431208.298700@o13g2000cwo.googlegroups.com> From: Ludovic Brenta Date: Sat, 05 Mar 2005 16:45:50 +0100 Message-ID: <87mzti85ap.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:gWO5s3Qui/AijbJNKX6VwywI2a8= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 05 Mar 2005 16:45:24 CET NNTP-Posting-Host: 83.134.241.69 X-Trace: 1110037524 dreader2.news.tiscali.nl 44097 83.134.241.69:34328 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:8649 Date: 2005-03-05T16:45:24+01:00 List-Id: writes: > Hello, > > I have been using QT library since a couple of years while coding in > C++. Now that I am studying and preferring Ada to C++, I would also > like to add some graphical content to my program exercises. > > Is there any way to use QT in an Ada program? Do you have any links > (manuals, bindings, etc.)? I am not aware of a binding to Qt. Generally, binding to C++ from another language is difficult, because this requires knowledge of the compiler's name mangling scheme. Also, some C++ features do not map well to other languages (templates in Pascal; multiple inheritance in Ada; etc.). By contrast, GTK+ was written in C for the specific purpose of making bindings easy to write. The GTK+ developpers recommend against using C for applications; they recommend using one of the many language bindings instead. > I know that I can access Gtk+ with GtkAda, but I haven't enough time to > learn a new library as now. Howerver, do I need to know Gtk+ before to > take on GtkAda manuals or it is not a pre-requisite? No, you can learn just GtkAda. Occasionally you'll need to look at the GTK+ reference manual. > PS.: As far as Ada bindings to other language libraries concerns, > can you please provide any link to a good and updated list of them? http://www.adaworld.com -- Ludovic Brenta.