« KRename v3.0.11 released | Main | RLPlot v1.1 released »

Qt & GLib integration

At the QDevBlog, Brad Hughes writes of how he got Qt running on top of the event loop of GLib, the base library of GTK+, with the result that Qt and KDE apps may be able to make use of plugins for GTK/GNOME as well as Qt/KDE:

Yesterday, I got Qt running on top of the Glib main loop. By using the QAbstractEventDispatcher API, I was able to completely replace the entire event dispatching mechanism of a Qt 4 application with less than 600 lines of code. What does this mean? No integration; the scenario above is now possible, since Qt would already be running a Glib main loop. I can now write an extension to my programs with any toolkit I want. Even more attractive is the idea that I can now write a Qt based extension to any GTK+ or GNOME program. Just think… I could write a plugin for the GIMP or for Eclipse, I could use the asynchronous GNOME VFS API. I’m sure there are possibilities I haven’t even thought of yet. And that’s the whole point: the possibilities are endless.

Discussion at OSNews.

TrackBack

TrackBack URL for this entry:
http://www.blogistan.co.uk/mt4/mt-tb.cgi/1205

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)