קוד: |
QIcon undoicon = QIcon::fromTheme("edit-undo", QIcon(":/undo.png")); |
קוד: |
#ifndef Q_OS_LINUX QStringList l; l << ":flat-icon-theme"; QIcon::setThemeSearchPaths(l); QIcon::setThemeName("flat-icon-theme"); #endif |
קוד: |
<qresource prefix="/"> <file>flat-icon-theme/index.theme</file> <file>flat-icon-theme/512x512/go-previous.png</file> <file>flat-icon-theme/512x512/go-next.png</file> <file>flat-icon-theme/512x512/document-open.png</file> <file>flat-icon-theme/512x512/document-save.png</file> <file>flat-icon-theme/512x512/edit-copy.png</file> |
קוד: |
[Icon Theme] Name=Flat Comment=Flat icons Inherits=default Directories=512x512 [512x512] Size=16 |