Doc: A guide for porting Gtk+ applications to Qt

Kuzma Shapran leaf.on.wind at gmail.com
Fri Apr 26 02:05:00 UTC 2013



On Thursday, 25 April 2013 17:45:28 UTC+12, PCMan wrote:
>
> Hello, 
> To help people porting their Gtk+ programs to Qt, I just started a 
> wikipage documenting what I've learned so far. 
> http://wiki.lxde.org/en/Port_GTK%2B_Programs_to_Qt 
>
>  
Great article!

May I add some notes?

To use signal/slots it is not necessary to include an automatically 
generated moc file, it only has to be compiled into the app.
If you use *.pro file to build your app - qmake will do all the magic for 
you. If you use CMake - qt4_wrap_cpp/qt5_wrap_cpp are macros you need.

Also useful CMake macros are:
qt4_add_resources to add embedded resources to your app,
qt4_wrap_ui to add a widget form,
qt4_create_translation for translation,
qt4_add_dbus_adaptor & qt4_add_dbus_interface to generate D-Bus-related 
code.


P.S. There is a layout problem in the table with "Disconnect signals" row - 
the cell content happened to be in the next row.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20130425/6e054d34/attachment.html>


More information about the Lubuntu-users mailing list