مشکل اصلی من اینه که نمیدونم این کد رو کجا کپی کنم
#if defined(Q_WS_X11)
/**
Blur behind windows (on KDE4.5+)
Uses a feature done for Plasma 4.5+ for hinting the window manager to draw
blur behind the window.
*/
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <QX11Info>
static bool kde4EnableBlurBehindWindow(WId window, bool enable, const QRegion ®ion = QRegion())
{
Display *dpy = QX11Info::display();
Atom atom = XInternAtom(dpy, "_KDE_NET_WM_BLUR_BEHIND_REGION", False);
if (enable) {
QVector<QRect> rects = region.rects();
QVector<quint32> data;
for (int i = 0; i < rects.count(); i++) {
const QRect r = rects[i];
data << r.x() << r.y() << r.width() << r.height();
}
XChangeProperty(dpy, window, atom, XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char *>(data.constData()), data.size());
} else {
XDeleteProperty(dpy, window, atom);
}
}
#endif