c++ - Qt: How to make the window below the virtual joy pad receive mouse/touch event? -


i have implemented qt based desktop gui. has main gui window (written in traditional qwidget) , qtquick window virtual joypad on top of main window. can seen follow: enter image description here

the virtual joypad window blocks large part of main window. make pink window's background transparent still blocks touch/mouse event.

how can make center part of pink window 'disappear' user can still control large parts of main gui?

you need make controller translucent , frame less. on windows platform allow create transparent solution can interacted with. not work on linux aka did not try make work. i'm using qt 5.8. can try setting stylesheet controller background:rgba(0,0,0,0).


Comments