Transparent QML Menu



  • I'm wondering if its possible to have a transparent QML menu? I tried doing it, but the background ends up white and not transparent.

    My goal is to create a menu like the following (notice the rounded borders and arrow): popup

    Is this possible with QML?



  • use the style or background component to set the color of the menu

    Menu{
          background: Rechtangle{
                  color: "transparent"
          }
    }
    

    if you want an arrow to be on top of the menu, I suggest you build it on your own.



  • @dauuser said in Transparent QML Menu:

    use the style or background component to set the color of the menu
    Menu{
    background: Rechtangle{
    color: "transparent"
    }
    }

    if you want an arrow to be on top of the menu, I suggest you build it on your own.

    As described in my original post this makes the background white, not transparent (see image below).

    0_1484340260858_issue.png

    Using transparency with a window has the same issue, but there is a separate solution for that.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.