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.

ConstantValueDescription
QStyle::SP_TitleBarMinButton1Minimize button on title bars (e.g., in QMdiSubWindow).
QStyle::SP_TitleBarMenuButton0Menu button on a title bar.
QStyle::SP_TitleBarMaxButton2Maximize button on title bars.
QStyle::SP_TitleBarCloseButton3Close button on title bars.
QStyle::SP_TitleBarNormalButton4Normal (restore) button on title bars.
QStyle::SP_TitleBarShadeButton5Shade button on title bars.
QStyle::SP_TitleBarUnshadeButton6Unshade button on title bars.
QStyle::SP_TitleBarContextHelpButton7The Context help button on title bars.
QStyle::SP_MessageBoxInformation9The "information" icon.
QStyle::SP_MessageBoxWarning10The "warning" icon.
QStyle::SP_MessageBoxCritical11The "critical" icon.
QStyle::SP_MessageBoxQuestion12The "question" icon.
QStyle::SP_DesktopIcon13The "desktop" icon.
QStyle::SP_TrashIcon14The "trash" icon.
QStyle::SP_ComputerIcon15The "My computer" icon.
QStyle::SP_DriveFDIcon16The floppy icon.
QStyle::SP_DriveHDIcon17The harddrive icon.
QStyle::SP_DriveCDIcon18The CD icon.
QStyle::SP_DriveDVDIcon19The DVD icon.
QStyle::SP_DriveNetIcon20The network icon.
QStyle::SP_DirHomeIcon55The home directory icon.
QStyle::SP_DirOpenIcon21The open directory icon.
QStyle::SP_DirClosedIcon22The closed directory icon.
QStyle::SP_DirIcon37The directory icon.
QStyle::SP_DirLinkIcon23The link to directory icon.
QStyle::SP_FileIcon24The file icon.
QStyle::SP_FileLinkIcon25The link to file icon.
QStyle::SP_FileDialogStart28The "start" icon in a file dialog.
QStyle::SP_FileDialogEnd29The "end" icon in a file dialog.
QStyle::SP_FileDialogToParent30The "parent directory" icon in a file dialog.
QStyle::SP_FileDialogNewFolder31The "create new folder" icon in a file dialog.
QStyle::SP_FileDialogDetailedView32The detailed view icon in a file dialog.
QStyle::SP_FileDialogInfoView33The file info icon in a file dialog.
QStyle::SP_FileDialogContentsView34The contents view icon in a file dialog.
QStyle::SP_FileDialogListView35The list view icon in a file dialog.
QStyle::SP_FileDialogBack36The back arrow in a file dialog.
QStyle::SP_DockWidgetCloseButton8Close button on dock windows (see also QDockWidget).
QStyle::SP_ToolBarHorizontalExtensionButton26Extension button for horizontal toolbars.
QStyle::SP_ToolBarVerticalExtensionButton27Extension button for vertical toolbars.
QStyle::SP_DialogOkButton38Icon for a standard OK button in a QDialogButtonBox.
QStyle::SP_DialogCancelButton39Icon for a standard Cancel button in a QDialogButtonBox.
QStyle::SP_DialogHelpButton40Icon for a standard Help button in a QDialogButtonBox.
QStyle::SP_DialogOpenButton41Icon for a standard Open button in a QDialogButtonBox.
QStyle::SP_DialogSaveButton42Icon for a standard Save button in a QDialogButtonBox.
QStyle::SP_DialogCloseButton43Icon for a standard Close button in a QDialogButtonBox.
QStyle::SP_DialogApplyButton44Icon for a standard Apply button in a QDialogButtonBox.
QStyle::SP_DialogResetButton45Icon for a standard Reset button in a QDialogButtonBox.
QStyle::SP_DialogDiscardButton46Icon for a standard Discard button in a QDialogButtonBox.
QStyle::SP_DialogYesButton47Icon for a standard Yes button in a QDialogButtonBox.
QStyle::SP_DialogNoButton48Icon for a standard No button in a QDialogButtonBox.
QStyle::SP_ArrowUp49Icon arrow pointing up.
QStyle::SP_ArrowDown50Icon arrow pointing down.
QStyle::SP_ArrowLeft51Icon arrow pointing left.
QStyle::SP_ArrowRight52Icon arrow pointing right.
QStyle::SP_ArrowBack53Equivalent to SP_ArrowLeft when the current layout direction isQt::LeftToRight, otherwise SP_ArrowRight.
QStyle::SP_ArrowForward54Equivalent to SP_ArrowRight when the current layout direction isQt::LeftToRight, otherwise SP_ArrowLeft.
QStyle::SP_CommandLink56Icon used to indicate a Vista style command link glyph.
QStyle::SP_VistaShield57Icon used to indicate UAC prompts on Windows Vista. This will return a null pixmap or icon on all other platforms.
QStyle::SP_BrowserReload58Icon indicating that the current page should be reloaded.
QStyle::SP_BrowserStop59Icon indicating that the page loading should stop.
QStyle::SP_MediaPlay60Icon indicating that media should begin playback.
QStyle::SP_MediaStop61Icon indicating that media should stop playback.
QStyle::SP_MediaPause62Icon indicating that media should pause playback.
QStyle::SP_MediaSkipForward63Icon indicating that media should skip forward.
QStyle::SP_MediaSkipBackward64Icon indicating that media should skip backward.
QStyle::SP_MediaSeekForward65Icon indicating that media should seek forward.
QStyle::SP_MediaSeekBackward66Icon indicating that media should seek backward.
QStyle::SP_MediaVolume67Icon indicating a volume control.
QStyle::SP_MediaVolumeMuted68Icon indicating a muted volume control.
QStyle::SP_CustomBase0xf0000000Base value for custom standard pixmaps; custom values must be greater than this value.

http://doc.qt.io/qt-4.8/qstyle.html

05-08 08:35