QT内置的ICON资源
QT内置的ICON资源保存在QStyle类里。
可以通过成员函数
QStyle::standardIcon
来获取。
保存的icon有:
enum QStyle::StandardPixmap
This enum describes the available standard pixmaps. A standard pixmap is a pixmap that can follow some existing GUI style or guideline.
| Constant | Value | Description |
|---|---|---|
| QStyle::SP_TitleBarMinButton | 1 | Minimize button on title bars (e.g., in QMdiSubWindow). |
| QStyle::SP_TitleBarMenuButton | 0 | Menu button on a title bar. |
| QStyle::SP_TitleBarMaxButton | 2 | Maximize button on title bars. |
| QStyle::SP_TitleBarCloseButton | 3 | Close button on title bars. |
| QStyle::SP_TitleBarNormalButton | 4 | Normal (restore) button on title bars. |
| QStyle::SP_TitleBarShadeButton | 5 | Shade button on title bars. |
| QStyle::SP_TitleBarUnshadeButton | 6 | Unshade button on title bars. |
| QStyle::SP_TitleBarContextHelpButton | 7 | The Context help button on title bars. |
| QStyle::SP_MessageBoxInformation | 9 | The "information" icon. |
| QStyle::SP_MessageBoxWarning | 10 | The "warning" icon. |
| QStyle::SP_MessageBoxCritical | 11 | The "critical" icon. |
| QStyle::SP_MessageBoxQuestion | 12 | The "question" icon. |
| QStyle::SP_DesktopIcon | 13 | The "desktop" icon. |
| QStyle::SP_TrashIcon | 14 | The "trash" icon. |
| QStyle::SP_ComputerIcon | 15 | The "My computer" icon. |
| QStyle::SP_DriveFDIcon | 16 | The floppy icon. |
| QStyle::SP_DriveHDIcon | 17 | The harddrive icon. |
| QStyle::SP_DriveCDIcon | 18 | The CD icon. |
| QStyle::SP_DriveDVDIcon | 19 | The DVD icon. |
| QStyle::SP_DriveNetIcon | 20 | The network icon. |
| QStyle::SP_DirHomeIcon | 55 | The home directory icon. |
| QStyle::SP_DirOpenIcon | 21 | The open directory icon. |
| QStyle::SP_DirClosedIcon | 22 | The closed directory icon. |
| QStyle::SP_DirIcon | 37 | The directory icon. |
| QStyle::SP_DirLinkIcon | 23 | The link to directory icon. |
| QStyle::SP_FileIcon | 24 | The file icon. |
| QStyle::SP_FileLinkIcon | 25 | The link to file icon. |
| QStyle::SP_FileDialogStart | 28 | The "start" icon in a file dialog. |
| QStyle::SP_FileDialogEnd | 29 | The "end" icon in a file dialog. |
| QStyle::SP_FileDialogToParent | 30 | The "parent directory" icon in a file dialog. |
| QStyle::SP_FileDialogNewFolder | 31 | The "create new folder" icon in a file dialog. |
| QStyle::SP_FileDialogDetailedView | 32 | The detailed view icon in a file dialog. |
| QStyle::SP_FileDialogInfoView | 33 | The file info icon in a file dialog. |
| QStyle::SP_FileDialogContentsView | 34 | The contents view icon in a file dialog. |
| QStyle::SP_FileDialogListView | 35 | The list view icon in a file dialog. |
| QStyle::SP_FileDialogBack | 36 | The back arrow in a file dialog. |
| QStyle::SP_DockWidgetCloseButton | 8 | Close button on dock windows (see also QDockWidget). |
| QStyle::SP_ToolBarHorizontalExtensionButton | 26 | Extension button for horizontal toolbars. |
| QStyle::SP_ToolBarVerticalExtensionButton | 27 | Extension button for vertical toolbars. |
| QStyle::SP_DialogOkButton | 38 | Icon for a standard OK button in a QDialogButtonBox. |
| QStyle::SP_DialogCancelButton | 39 | Icon for a standard Cancel button in a QDialogButtonBox. |
| QStyle::SP_DialogHelpButton | 40 | Icon for a standard Help button in a QDialogButtonBox. |
| QStyle::SP_DialogOpenButton | 41 | Icon for a standard Open button in a QDialogButtonBox. |
| QStyle::SP_DialogSaveButton | 42 | Icon for a standard Save button in a QDialogButtonBox. |
| QStyle::SP_DialogCloseButton | 43 | Icon for a standard Close button in a QDialogButtonBox. |
| QStyle::SP_DialogApplyButton | 44 | Icon for a standard Apply button in a QDialogButtonBox. |
| QStyle::SP_DialogResetButton | 45 | Icon for a standard Reset button in a QDialogButtonBox. |
| QStyle::SP_DialogDiscardButton | 46 | Icon for a standard Discard button in a QDialogButtonBox. |
| QStyle::SP_DialogYesButton | 47 | Icon for a standard Yes button in a QDialogButtonBox. |
| QStyle::SP_DialogNoButton | 48 | Icon for a standard No button in a QDialogButtonBox. |
| QStyle::SP_ArrowUp | 49 | Icon arrow pointing up. |
| QStyle::SP_ArrowDown | 50 | Icon arrow pointing down. |
| QStyle::SP_ArrowLeft | 51 | Icon arrow pointing left. |
| QStyle::SP_ArrowRight | 52 | Icon arrow pointing right. |
| QStyle::SP_ArrowBack | 53 | Equivalent to SP_ArrowLeft when the current layout direction isQt::LeftToRight, otherwise SP_ArrowRight. |
| QStyle::SP_ArrowForward | 54 | Equivalent to SP_ArrowRight when the current layout direction isQt::LeftToRight, otherwise SP_ArrowLeft. |
| QStyle::SP_CommandLink | 56 | Icon used to indicate a Vista style command link glyph. |
| QStyle::SP_VistaShield | 57 | Icon used to indicate UAC prompts on Windows Vista. This will return a null pixmap or icon on all other platforms. |
| QStyle::SP_BrowserReload | 58 | Icon indicating that the current page should be reloaded. |
| QStyle::SP_BrowserStop | 59 | Icon indicating that the page loading should stop. |
| QStyle::SP_MediaPlay | 60 | Icon indicating that media should begin playback. |
| QStyle::SP_MediaStop | 61 | Icon indicating that media should stop playback. |
| QStyle::SP_MediaPause | 62 | Icon indicating that media should pause playback. |
| QStyle::SP_MediaSkipForward | 63 | Icon indicating that media should skip forward. |
| QStyle::SP_MediaSkipBackward | 64 | Icon indicating that media should skip backward. |
| QStyle::SP_MediaSeekForward | 65 | Icon indicating that media should seek forward. |
| QStyle::SP_MediaSeekBackward | 66 | Icon indicating that media should seek backward. |
| QStyle::SP_MediaVolume | 67 | Icon indicating a volume control. |
| QStyle::SP_MediaVolumeMuted | 68 | Icon indicating a muted volume control. |
| QStyle::SP_CustomBase | 0xf0000000 | Base value for custom standard pixmaps; custom values must be greater than this value. |
http://doc.qt.io/qt-4.8/qstyle.html
QT内置的ICON资源的更多相关文章
- Qt给应用程序添加版本信息(对rc文件的设置,可利用QT内置变量)
作者:daodaoliang 时间:2016年7月11日16:12:09 版本:V 0.0.4 邮箱:daodaoliang@yeah.net 0. 环境说明 系统环境: win10 64位 Qt环境 ...
- qt 内置图标使用
QToolButton *button = new QToolButton(this); button->resize(100,30); button->setToolButtonStyl ...
- Spring-Boot 内置静态资源文件地址修改
Spring-Boot 内置MVC静态文件地址修改 Why:1.Spring-Boot修改内置SpringMVC静态资源路径,提高项目目录结构的安全性.2.配置拦截路径时可以剔除静态文件拦截How:1 ...
- 解决GDB输出Qt内置类型的显示问题
自从GDB 7.0之后,就加入了Pretty-Printer的这个概念.简单理解就是他可以让你用Python写一串脚本,然后让gdb去读取这串脚本后,可以自由的输出由你想自己定义的格式.我们直接举个简 ...
- springboot(八)内置SpringMvc静态文件地址修改
参考:作者:恒宇少年链接:https://www.jianshu.com/p/c6ab1081fd5f 介绍: SpringMVC大家都不陌生,而被SpringBoot集成的SpringMVC除了 ...
- Android 打造自己的个性化应用(二):应用程序内置资源实现换肤功能
通过应用程序内置资源实现换肤,典型的应用为QQ空间中换肤的实现. 应用场景为: 应用一般不大,且页面较少,风格相对简单,一般只用实现部分资源或者只用实现背景的更换. 此种换肤方式实现的思路: 1. 把 ...
- 资源 之 4.2 内置Resource实现(拾)
4.2 内置Resource实现 4.2.1 ByteArrayResource ByteArrayResource代表byte[]数组资源,对于"getInputStream" ...
- 开涛spring3(4.2) - 资源 之 4.2 内置Resource实现
4.2 内置Resource实现 4.2.1 ByteArrayResource ByteArrayResource代表byte[]数组资源,对于“getInputStream”操作将返回一个By ...
- wpf中内置资源文件
wpf中包含三种文件类型 资源文件:编译到可执行或库 WPF 程序集中的数据文件. 内容文件:与可执行 WPF 程序集具有显式关联的独立数据文件. 源站点文件:与可执行 WPF 程序集没有关联的独立数 ...
随机推荐
- sql 嵌套事务学习笔记
以下内容根据此官方文档修改:http://technet.microsoft.com/zh-cn/library/ms189336(v=sql.105).aspx 嵌套事务的使用场景或者说目的主要是为 ...
- oracle 过程函数,包的区别和联系
一.过程与函数区别 1.过程可以有0~N个返回参数,通过OUT or IN OUT参数返回:函数有且仅有1个返回值,通过return语句返回. 2.调用过程时,可做为单独的语句执行:调用函数时,函数必 ...
- 菜鸟日记之JSP二 内置对象的理解
·最近学习JSP了,对编程和网络又有了一些理解.无论是现实中人与人的交流,还是网络世界的接触,都是在相互表达自己的意思让别人知道,并理解对方的信息.然后我们知道的事情不断的变多,会又交杂出新的内容,不 ...
- 【工具篇】notepad++
一直都是使用notepad++来写程序,感觉比UE好用多了,没有UE那么重.前段时间网上还做了一个调查,notepad++在国外使用排行还是非常高的,在国内也是很流行.以下记录一些比较实用的技巧. 一 ...
- QT UI 如果发现布局之后,button不在父widget的中间
如果发现布局之后,button不在父widget的中间: 调整父widget的布局参数:
- java学习之反射机制
java语言区别于C,C++等准静态语言的最大特点就是java的反射机制.静态语言的最直接定义就是不能在运行时改变程序结构或变量的类型.按照这样的定义,python,ruby是动态语言,C,C++,J ...
- demo_05HTML5+CSS3绘制小鸟
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...
- 纯JS写出日历
封装代码: (function(cmf){ cmf.showDcalendar=function(){ var fnname=cmf.fn var id="cmfrili2" va ...
- centos乱码问题解决
1.yum groupinstall chinese-support 安装中文语言包 2.vi /etc/sysconfig/i18n 修改文件为: LANG="zh_CN.UTF-8&qu ...
- learn-python3
# learn-python3 这是我初学Python时写的一套Python基础示例程序.主要基于廖雪峰老师的Python3教程和<<深入理解Python>>. 感谢! 下 ...