When i click a button my main window i want it to become transparent to keyboard and mouse events, i.e. all keyboard and mouse events should pass to any windows below it as if that window is not present there.
"Qt::WA_TransparentForMouseEvents" does not work here as this only make child windows transparent to keyboard and mouse events i guess. And my window is main window and i want to pass all event to any window on desktop not just parent window.