Transparent QML/Qt view + clicking through to other applications?



  • I'm trying to make an overlay for a video game I play using Qt/QML, but I would like to make my mouse clicks inside the application propagate through to the game behind the application.
    I've been searching the forums and found multiple solutions to overlays including windows flags and setting the stylesheet to transparent, but none of these address the ability to click through the application. I tried my best with QML:

    @import QtQuick 2.0
    import QtQuick.Controls 1.1

    ApplicationWindow {
    id: screen
    width: 500
    height: 500
    flags: Qt.FramelessWindowHint
    color: "transparent"

    MouseArea {
        anchors.fill: parent
        propagateComposedEvents: true
        onClicked: {
            mouse.accepted = false
        }
    }
    

    }@

    Any ideas?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.