https://bugs.kde.org/show_bug.cgi?id=337491

--- Comment #21 from cmdrkot...@gmail.com ---
Here's how I solved it. It's a bit ugly.

.pro file:
LIBS += -ldl

.c++ file:
#include <dlfcn.h>

void Helpers::disableSystemAccel(QWidget *what)
{
    void *d = dlopen("libKF5WidgetsAddons.so", RTLD_LAZY);
    if (!d)
        return;
    typedef void (*DisablerFunc)(QWidget *);
    DisablerFunc setNoAccel;
    setNoAccel = reinterpret_cast<DisablerFunc>(dlsym(d,
"_ZN19KAcceleratorManager10setNoAccelEP7QWidget"));
    if (setNoAccel)
        setNoAccel(what);
    dlclose(d);
}

Call this function in your object's constructor.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to