博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
qtDesigner设计界面中如何往工具栏中添加按钮QAction
阅读量:4179 次
发布时间:2019-05-26

本文共 175 字,大约阅读时间需要 1 分钟。

菜单“控件”-》“视图”-》“Action Editor”

图上就可以新建action等操作了

想要给菜单添加就拖动到菜单上

想要给工具栏添加就拖动到工具栏上

新建完后要添加图标;得先加资源文件,加个png图片

也可以右键菜单编辑

 

工具栏只有图标没有文字的解决办法,修改toolButtonStyle为ToolButtonTextBesideIcon

 

转载地址:http://wkmai.baihongyu.com/

你可能感兴趣的文章
Linux内核-------同步机制(二)
查看>>
面试题31-------连续子数组的最大和(数组)
查看>>
epoll 实现Chat
查看>>
21. Merge Two Sorted Lists(链表)
查看>>
2. Add Two Numbers(链表)
查看>>
637. Average of Levels in Binary Tree(Tree)
查看>>
226. Invert Binary Tree(Tree)
查看>>
328. Odd Even Linked List(链表)
查看>>
617. Merge Two Binary Trees(Tree)
查看>>
700. Search in a Binary Search Tree(Tree)
查看>>
515. Find Largest Value in Each Tree Row(Tree)
查看>>
897. Increasing Order Search Tree(Tree)
查看>>
199. Binary Tree Right Side View(Tree)
查看>>
230. Kth Smallest Element in a BST(Tree)
查看>>
求字符串的最长回文串-----Manacher's Algorithm 马拉车算法
查看>>
回溯法常用的解题模板和常见题型
查看>>
深入分析Java I/O 的工作机制
查看>>
动态规划的套路----左神
查看>>
KMP算法简解
查看>>
左神算法课进阶版总结
查看>>