So far the only dependency to Qt 4.8 is: Code: QApplication::setAttribute(Qt::AA_X11InitThreads, true); which is easily replaceable with: Code: . . . #if defined(Q_WS_X11) #include <X11/Xlib.h> #endif . . . #if QT_VERSION >= 0x040800 QApplication::setAttribute(Qt::AA_X11InitThreads, true); #else XInitThreads(); QApplication::setAttribute(static_cast<Qt::ApplicationAttribute>(10), true); #endif Of course -lX11 should be added to make scripts too @romaxa - would you consider adding that code to your branch?
QApplication::setAttribute(Qt::AA_X11InitThreads, true);
. . . #if defined(Q_WS_X11) #include <X11/Xlib.h> #endif . . . #if QT_VERSION >= 0x040800 QApplication::setAttribute(Qt::AA_X11InitThreads, true); #else XInitThreads(); QApplication::setAttribute(static_cast<Qt::ApplicationAttribute>(10), true); #endif