Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. FastBlurItem prevents Button from drawing properly or receiving mouse events?
QtWS25 Last Chance

FastBlurItem prevents Button from drawing properly or receiving mouse events?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 177 Views
  • 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.
  • S Offline
    S Offline
    Shiny
    wrote on last edited by
    #1

    Just playing around with the FastBlurItem component, and I notice it seems to break any control placed inside it? The following contrived example shows what I'm seeing in Qt Design Studio 1.5.0.

    import QtQuick 2.12
    import QtQuick.Controls 2.3
    import QtGraphicalEffects 1.0
    import QtQuick.Studio.Effects 1.0
    
    Pane {
        id: _root
        width: 600
        height: 600
    
        Button {
            text: "This is a button"
            anchors.centerIn: parent
            onClicked: console.info("First button clicked!")
        }
    
        FastBlurItem {
            anchors.fill: parent
            radius: 10
    
            Button {
                text: "Blurred button"
                anchors.top: parent.top
                anchors.topMargin: 20
                anchors.left: parent.left
                anchors.leftMargin: 20
    
                onClicked: console.info("Blurred button clicked!")
            }
        }
    
        Button {
            text: "This is another button"
            anchors.left: parent.left
            anchors.verticalCenter: parent.verticalCenter
    
            onClicked: console.info("Other button clicked!")
        }
    }
    
    

    In the form editor, the Button inside the FastBlurItem doesn't even display visually anymore, though it is still selectable. When previewing, the button text appears blurred, but the button rectangle itself doesn't draw, and it is no longer clickable.
    The other two buttons work as expected.

    So...does this mean FastBlurItem eats mouse events? Is it not possible to place controls within one?

    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2
      This post is deleted!
      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