Is it possible to create a DropDown with icons next to the DropDown items?

I’m really curious if it’s possible to create a DropDown, when selected, all the items in the list will display custom icons next to them?

I’ve searched everywhere for info on how to, but I really can’t find any info on how to implement a DropDown with icons next to each item entry.

Hi,

Yes, you can specify a custom Gtk.DropDown:list-factory to generate the widgets used in the popup.

There are some examples in gtk4-demo, I recommend to have a look at the “Lists > Selections” one.

2 Likes

Awesome! I’ll definitely give it a go, so that I can customise the DropDown to display icons next to them.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.