Skip to content

More properties for MenuItem: icon #7791

@ogoffart

Description

@ogoffart
Member

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.

Activity

added a commit that references this issue on Apr 15, 2025
changed the title [-]More properties for MenuItem: `enabled`, `icon`[/-] [+]More properties for MenuItem: ~`enabled`~~, `icon`[/+] on Apr 15, 2025
changed the title [-]More properties for MenuItem: ~`enabled`~~, `icon`[/-] [+]More properties for MenuItem: ~~`enabled`~~, `icon`[/+] on Apr 15, 2025
changed the title [-]More properties for MenuItem: ~~`enabled`~~, `icon`[/-] [+]More properties for MenuItem: `icon`[/+] on Apr 15, 2025
added a commit that references this issue on Apr 16, 2025
25dae4c
added 2 commits that reference this issue on Apr 28, 2025
f2e13ce
595cfa5
added 3 commits that reference this issue on May 7, 2025
31cc983
0f3b1fd
bcb05d9
added theissue type on May 7, 2025
added a commit that references this issue on Jun 26, 2025
b49eb5f
added a commit that references this issue on Jun 26, 2025
c09ed19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:language-slintCompiler for the .slint language (mO,bF)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @ogoffart

      Issue actions

        More properties for MenuItem: `icon` · Issue #7791 · slint-ui/slint