pyqt4中带有子菜单的下拉菜单
如何创建带有子菜单的下拉菜单,该子菜单可以在选择元素时执行操作?菜单的数据是从字典中加载的。我已经尝试过 qpushbutton 中的菜单,但我认为它没有子菜单。这是我想要做的一个例子,我只想要子菜单,但它对我来说太复杂了。 带有行内拼写检查功能的 QPlainTextEdit
how to create a drop down menu with sub menus that can execute an action when the element is selected? The data of the menu's are loaded from dictionary. I've tried the menu in qpushbutton but i think there's no sub menus for it. Here is an example of what i want to do, I only want the sub menus, but its too complicated for me. QPlainTextEdit With In Line Spell Check
你没有说你做了什么,但这是一个简单的例子:
You didn't say what did you do, but here's a simple example: