[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Iterate recursiv through QMenu
From: JakobDev <jakobdev () gmx ! de>
Date: 2021-03-17 14:09:38
Message-ID: be5c5faf-33d6-2ec4-20ce-605917883dd7 () gmx ! de
[Download RAW message or body]
I have this function in one of my programs:
def getMenuActions(self, menu):
for action in menu.actions():
if action.menu():
self.getMenuActions(action.menu())
else:
#Do something with Action
This function iterate recursiv through QMenu. But in PyQt6
QAction.menu() does not exists anymore and I haven't found a replacement
yet. Any ideas?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic