Re: [sigc] usage of sigc
- From: Rui Maciel <rui maciel gmail com>
- To: libsigc-list gnome org
- Subject: Re: [sigc] usage of sigc
- Date: Tue, 31 Jul 2012 20:58:50 +0100
On 07/31/2012 01:55 PM, Paul Davis wrote:
using sigc++ and Qt could be problematic. both libraries use similar
terminology. if you want signals+slots and you use Qt, you should probably
use Qt's own signals+slots rather than two different approaches in the same
program.
They both work well together, provided that a couple of tweaks are done
so that Qt's symbols don't clash with libsigc++'s. If I'm not mistaken,
all that's needed to mix libsigc++ with Qt's signals and slots is to
include libsigc++'s headers before any Qt header, and refer to Qt's
signals and slots through the Q_SIGNALS and Q_SLOTS keyword. It has
also been suggested that a #define QT_NO_KEYWORDS is also added to the
source code files where libsigc++ is used.
I've developed a small program where I've used libsigc++ with Qt and, by
following this, I haven't had any problem whatsoever.
Hope this helps,
Rui Maciel
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]