[Interest] Change Menu background

Alexander Dyagilev alervdvcw at gmail.com
Thu Oct 3 14:44:56 CEST 2024


Hello,

I'm using Qt 6.6.3.

I'm trying to customize menu.

I've created the following component:

Menu
{
    background: Rectangle {
        color: "green"
    }
}

Now my menu just does not show up. I believe it's because its size is (0,0)
now.

Where am I wrong? In Qt docs it's stated, that background follows its
parent's size.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20241003/d25332ce/attachment.htm>


More information about the Interest mailing list