Nominate our 2022 Qt Champions!

Widget/Window multiple screens

  • Hello,
    I'm new to QT. I use version 4.8, my operating system is linux amd64.
    I'd like to have transparent widget that catches all mouse events on all screens and stops propagation of these events.
    First problem is I can't initialize one full screen widget/window on multiple screens. So my solution is create full screen widget on each screen.
    Second I can't stop propagation of mouse events event with installEventFilter, those events are catched by window manager, in my case it's XFCE, but the same problem is on KDE, etc.
    Could anybody help me with this?

    Sorry for my English.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Are you trying to build something like a screensaver ?

  • Yes, I'm trying to build somekind of screensaver

  • Lifetime Qt Champion

    AFAIK, there's no pre-built widget for that. You should take a look at e.g. KDE's screen savers implementation to see how they do it.

Log in to reply