Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for MCUs
  4. ItemLayer Transparency issue on CYT4DN Platform
Forum Update on Monday, May 27th 2025

ItemLayer Transparency issue on CYT4DN Platform

Scheduled Pinned Locked Moved Unsolved Qt for MCUs
1 Posts 1 Posters 178 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.
  • V Offline
    V Offline
    vignesh_vinayak
    wrote on 31 Dec 2024, 06:54 last edited by
    #1

    Hi,
    I am facing issue while trying to bring images with transparency areas using ItemLayer API. This is the code im using
    ItemLayer {
    id:rootLayer2
    width:774
    height:720
    renderingHints: ItemLayer.OptimizeForSize
    platformId: 2
    depth: ItemLayer.Bpp32Alpha
    anchors.left: parent.left
    anchors.leftMargin: 1136
    z:2

            Rectangle {
                width: 774
                height: 720
                color: "black"
    
                TachGauge {
                    id:tachometer
                }
            }
        } If i use rectangle as a parent component with black color my assets are rendered properly but if directly put image in a ItemLayer without rectangle as a parent component my assets are not rendered properly.
    

    Screenshot 2024-12-31 121958.png
    I shared a reference PNG, in that you able to see some waves pass thorugh a black boundary if didn't use rectangle as a parent component that parts gets omitted and it renders only the parts inside a black boundary, why is that? kindly help me with this.

    1 Reply Last reply
    0

    1/1

    31 Dec 2024, 06:54

    • Login

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