Skip to content Skip to sidebar Skip to footer

Connect A Function When Menu Title Is Clicked

I am trying to find open ports and add them to my menu. Right now, what I succeed having an action to my menu (like, 'find ports'), and only if it's clicked - it will connect to my

Solution 1:

You have to use the aboutToShow signal:

self.ui.productMenu.aboutToShow.connect(self.findPort)

Post a Comment for "Connect A Function When Menu Title Is Clicked"