I remember I have some conflicts between X and Qt headers when I worked on
global key shortcuts daemon.
In src/core.h I see Qt headers _before_ X and also there are some traces of
black magic:

#include <QThread>
... other Qt headers
#include <QDBusObjectPath>

#include "meta_types.h"
... local project headers
#include "log_target.h"

...  other system headers

extern "C" {
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xproto.h>
#undef Bool
}

I hope it helps.

Cheers,
Kuzma


On 17 April 2014 05:59, Alexis López Zubieta <azubi...@estudiantes.uci.cu>wrote:

> Hello:
> I'm trying to port the taskbar and systray plugins of the lxqt-panel to
> QT5.2. Before going to KWindowsSystem I would like to let a working qt5
> version of the panel.
>
> But I'm having a weird trouble with the XLib headers, when those are
> used in a class that inherits from QObject and implements some slots or
> signals it breaks rest of the code. But if the class doesn't have any of
> those (slot or signal) it works well.
>
> I suspect that the Qt headers get corrupted by the macros declared in
> Xlib.h while moc is running. Any idea?
>
> Best
> Alexis López Zubieta
> Nova Light Development Team
> University of Informatics Sciences, Cuba
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Lxde-list mailing list
> Lxde-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxde-list
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to