How to send multiple variant arguments to the action

Can I send multiple data types as the action arguments e.g. Gstring and boolean in array for example? As understand this function allows only one argument, that’s strange to be true

Reading this book but can’t find the example, only single variant option:
https://gtk-rs.org/gtk4-rs/stable/latest/book/actions.html

You should be able to pass e.g. a variant containing a tuple, array or dictionary.

1 Like

Array is the similar types struct, where I want to pass string and boolean at the same time, so can’t do that with array.

But will check for 2 other variants, thanks

I’m correct, that can’t pass custom structs or classes to variants as data type?