Pyside6/pyqt5:使用Aditional下拉菜单创建按钮

发布于 2025-01-31 13:45:03 字数 351 浏览 1 评论 0原文

在我的应用程序中,我不想用太多按钮将屏幕混乱,因此我想在一个按钮中添加多个操作。甚至认为我可以通过诸如双击或修饰符键之类的事情来完成,这些解决方案绝不对用户直观。我想拥有一个具有额外下拉菜单的按钮,可用于更改按钮的操作。为了说明说明,这是一个粗略的草图:

”油漆中创建的,UI设计师最好的朋友”

这可能是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:

created in paint, the ui designers best friend

Is this possible PyQt5 or PySide6? Thank you for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文