To check which item the user clicks use the item_pressed signal. You’ll probably want to connect each submenu to a separate function.
Hi,
thank you for the answer. In your example, how do you delete all the submenus before creating them?
Basically I need to reset them every time the menu button is clicked - I want to make submenus populate dynamically every time the button is clicked
My ultimate goal is the get a folder structure and turn it into a submenu structure to access directories of subfolders. It’s turning out to be very challenging :o