Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Transparent QML/Qt view + clicking through to other applications?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EStudley
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved