qt icon状态

编程入门 行业动态 更新时间:2024-10-26 18:21:53

qt icon<a href=https://www.elefans.com/category/jswz/34/1771386.html style=状态"/>

qt icon状态

在qt designer中我们可以看到,一些控件允许设置图标,然后在它下面会出现很多项目

对这些不同项目的解释见 enum QIcon::Mode

ConstantValueDescription
QIcon::Normal0Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available. 控件可用时,如果没有检测到交互事件(如鼠标事件),显示该图标
QIcon::Disabled1Display the pixmap when the functionality represented by the icon is not available.控件禁用时,显示该图标
QIcon::Active2Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it. 控件可用时,并且检测到交互事件(如鼠标事件),显示该图标
QIcon::Selected3Display the pixmap when the item represented by the icon is selected. 控件被选中时(如check),显示该图标

更多推荐

qt icon状态

本文发布于:2024-02-25 16:13:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1699561.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态   qt   icon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!