Skip to content

More properties for MenuItem: icon #7791

Open
@ogoffart

Description

@ogoffart

We should add a way to disable MenuItem and have an Icon

Menu {
   MenuItem { 
       title: @tr("Copy");
       icon: @image-url("icons/copy.png")
       enabled: root.has-selection;
       activated => { ... }
   } 
}

Update: enabled property was added in #8145
This issue now tracks the icon property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:language-slintCompiler for the .slint language (mO,bF)enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions