Pyside6/pyqt5:使用Aditional下拉菜单创建按钮
在我的应用程序中,我不想用太多按钮将屏幕混乱,因此我想在一个按钮中添加多个操作。甚至认为我可以通过诸如双击或修饰符键之类的事情来完成,这些解决方案绝不对用户直观。我想拥有一个具有额外下拉菜单的按钮,可用于更改按钮的操作。为了说明说明,这是一个粗略的草图:
这可能是Pyqt5还是Pyside6?感谢您的帮助。
In my application, I don't want to clutter the screen with too many buttons, so I want to add multiple actions to one button. Even thought I could accomplish it through things like double clicking or modifier keys, those solutions are in no way intuitive for the user. I want to have a button that has an additional dropdown menu, which can be used to change the action of the button. To illustrate, here is a rough sketch of what that would look like:
Is this possible PyQt5 or PySide6? Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论