On Friday, 2013-04-26, Kuzma Shapran wrote:
> 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.

You can also just activate CMake's automoc feature

set(CMAKE_AUTOMOC TRUE)

It supports both separately compiled moc.cpp files as well as moc "includes".

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to