Home
Hi there.
If you've found this code, chances are, it’s not what you want. It’s very incomplete, probably very ugly, and it may also be against your religious beliefs.
If you’re still with me, here’s what it is. At the core of things, it’s a wrapper providing a GTK-compatible API wrapping around Qt widgets and library.
The ultimate aim is to allow GTK applications to compile with Qt to provide a more unified system (with less dependancies, i.e. GTK), and to ease porting of applications to Qt.
Architecturally, it’s a series of header files containing code providing GTK API (like gtk_main), which wraps around the Qt equivilants to do the heavy lifting, plus support code as necessary in many places to make the two functionally alike.
To use this with an application using GTK, you’ll need to first verify it builds as valid C++ (sorry, it’s required.)
To do this, substitute g++ for gcc, and make sure it doesn’t blow up.
If it does, fix your code.
If it doesn’t, try something like this:
g++ my.c -o myapp -I/home/my/path/to/gqt -I/home/my/path/to/qt4/include -I/home/my/path/to/qt4/include/QtGui -I/home/my/path/to/qt4/include/QtCore -L/home/my/path/to/qt4/lib -lQtCore -lQtGui -Wl, —rpath -Wl, /home/my/path/to/qt4/lib
.. and obviously, run myapp.
If it doesn’t work, fix it, and tell me about the fix.
I am reachable at:
Robin Burchell viroteck@viroteck.net
Thanks to:
John Brooks special@dereferenced.net
Thorbjørn

