Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 QAction 的快捷方式设置为“Ctrl + Left Mouse Button”,但不知道该怎么做。对于键盘快捷键,我这样做:
someAction = QtGui.QAction("DoSomething", self, shortcut="Ctrl+S")
有人有建议吗?谢谢。