![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtGui/qtguiglobal.h>#include <QtCore/qsize.h>#include <QtCore/qlist.h>#include <QtGui/qpixmap.h>Go to the source code of this file.
Classes | |
| class | QIcon |
| The QIcon class provides scalable icons in different modes and states. More... | |
Functions | |
| Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &ss, const QIcon &icon) |
| Q_GUI_EXPORT QDataStream & | operator>> (QDataStream &, QIcon &) |
| Q_GUI_EXPORT QDebug | operator<< (QDebug dbg, const QIcon &) |
| Q_GUI_EXPORT QString | qt_findAtNxFile (const QString &baseFileName, qreal targetDevicePixelRatio, qreal *sourceDevicePixelRatio=nullptr) |
| QDataStream & operator<< | ( | QDataStream & | s, |
| const QIcon & | icon ) |
| QDataStream & operator>> | ( | QDataStream & | s, |
| QIcon & | icon ) |
| QString qt_findAtNxFile | ( | const QString & | baseFileName, |
| qreal | targetDevicePixelRatio, | ||
| qreal * | sourceDevicePixelRatio ) |
Given base foo.png and a target dpr of 2.5, this function will look for foo@3.nosp@m.x.pn.nosp@m.g, then foo@2x, then fall back to foo.png if not found.
sourceDevicePixelRatio will be set to the value of N if the argument is not \nullptr