qt-interest@trolltech.com
[Top] [All Lists]

Re: Qt, Xlib and global hotkeys

Subject: Re: Qt, Xlib and global hotkeys
From: Simon Wiesmann
Date: Sun, 01 Jun 2008 14:00:18 +0200
Thank you!
including the qt stuff first did it :)



R. Reucher wrote:
On Sun June 1 2008 13:31, Simon Wiesmann wrote:
Here's the main.cpp:
#####################################

#include "qgero.h"

extern "C"
{
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
}

#include <QtGui>
#include <QApplication>

int main(int argc, char *argv[])
{

QApplication a(argc, argv);
Qgero w;
w.show();

return a.exec();
}


What am I missing? Is there a problem, since Qt already uses Xlib stuff?
Noit sure, but I assume it is something like that... I'd just not include the xlib stuff, or put the neccesarray X11 #include's after the Qt-ones (I'm mostly sure you don't need to include them explicitly...).

HTH, René


--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>