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. how to off ShaderEffectSource animation qt
Qt 6.11 is out! See what's new in the release blog

how to off ShaderEffectSource animation qt

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 329 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.
  • Q Offline
    Q Offline
    qunreallx
    wrote on last edited by
    #1

    I have a project on qt 6.6.3, opengl and quick are connected. Everything works correctly, the code I'll show below is part of my application. Closer to the point - when I load components, blur appears on the elements under it. And the fact is that when launched, an animation of blur manifestation is played, which should not be there. I did not find anything like this in the documentation

    I would be glad to see the proposed alternatives or other ways of loading the element.

    import QtQuick 6.6
    import QtQuick.Controls 6.6
    import QtQuick.Effects 6.6
    import Qt5Compat.GraphicalEffects
    
    Rectangle {
        id: company_page
        anchors.fill: parent
        color: "transparent" 
    
    
        Rectangle {
            id: leftObject
            width: parent.width * 0.4
            height: parent.height * 0.6
            color: "blue"
            radius: 10
            anchors.left: parent.left
            anchors.verticalCenter: parent.verticalCenter
            anchors.margins: 20
        }
    
        Rectangle {
            id: rightObject
            width: parent.width * 0.4
            height: parent.height * 0.6
            color: "green"
            radius: 10
            anchors.right: parent.right
            anchors.verticalCenter: parent.verticalCenter
            anchors.margins: 20
        }
    
        Rectangle {
            id: blurArea
            width: 500
            height: 400
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            color: "transparent"
            border.color: "black"
    
            ShaderEffectSource {
                id: blurSource
                sourceItem: company_page
                sourceRect: Qt.rect(blurArea.x, blurArea.y, blurArea.width, blurArea.height)
                live: true
            }
    
            FastBlur {
                id: blurEffect
                anchors.fill: parent
                source: blurSource
                radius: 20 
                transparentBorder: true
            }
        }
    }
    
    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