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. Transparent QML Menu
Forum Updated to NodeBB v4.3 + New Features

Transparent QML Menu

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.7k 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.
  • H Offline
    H Offline
    Henry_S
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dauuser
      wrote on last edited by dauuser
      #2

      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.

      H 1 Reply Last reply
      0
      • D dauuser

        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.

        H Offline
        H Offline
        Henry_S
        wrote on last edited by
        #3

        @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.

        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