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. Create a fully transparent window not widgets
Forum Update on Monday, May 27th 2025

Create a fully transparent window not widgets

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 224 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.
  • N Offline
    N Offline
    Newtron
    wrote on last edited by
    #1

    I Only want a transparent window background. But here rectangle is also tranparent. What can i do.

    import QtQuick 2.12
    import QtQuick.Window 2.12
    
    Window {
        id: window
        visible: true
        width: Screen.width
        height: Screen.height
        title: qsTr("Hello World")
        flags: Qt.FramelessWindowHint
        opacity: 0
    
    
        Rectangle {
            id: rectangle1
            y: 568
            width: 640
            height: 480
            color: "#f3f3f3"
            anchors.left: parent.left
            anchors.leftMargin: 0
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 0
        }
    }
    
    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      replace opacity: 0 by color: "transparent"

      1 Reply Last reply
      6
      • N Offline
        N Offline
        Newtron
        wrote on last edited by
        #3

        @GrecKo said in Create a fully transparent window not widgets:

        transparent

        That worked fine. Thanks

        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