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. Qt5.9.3 QML App background transparent
Forum Updated to NodeBB v4.3 + New Features

Qt5.9.3 QML App background transparent

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 1.0k Views 1 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.
  • A Offline
    A Offline
    Alex_wang
    wrote on last edited by Alex_wang
    #1

    my QML app is rendering with eglfs-kms-egldevice plugin, and when setting the background to transparent,
    the UI background will be white on the screen.

    background to transparent:

    ApplicationWindow
    {
        id : mainWindow
    
        visible: true
        width: Screen.width
        height: Screen.height
       
        background:Rectangle
        {
            color : "#80030f14"
        }
    }
    
    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2

      A quote from ApplicationWindow::background docs:

      This property holds the background item.

      The background item is stacked under the content item, but above the background color of the window.

      The background item is useful for images and gradients, for example, but the color property is preferable for solid colors, as it doesn't need to create an item.

      A 1 Reply Last reply
      1
      • jpnurmiJ jpnurmi

        A quote from ApplicationWindow::background docs:

        This property holds the background item.

        The background item is stacked under the content item, but above the background color of the window.

        The background item is useful for images and gradients, for example, but the color property is preferable for solid colors, as it doesn't need to create an item.

        A Offline
        A Offline
        Alex_wang
        wrote on last edited by
        #3

        @jpnurmi

        Hi, thanks for you, I have been solved it.

        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