Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qicon.h File Reference

(ceacda33de79ab607b3efda4588e180b4bf443c4)

#include <QtGui/qtguiglobal.h>
#include <QtCore/qsize.h>
#include <QtCore/qlist.h>
#include <QtGui/qpixmap.h>
Include dependency graph for qicon.h:
This graph shows which files directly or indirectly include this file:

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 QDataStreamoperator<< (QDataStream &s, const QIcon &icon)
Q_GUI_EXPORT QDataStreamoperator>> (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)

Function Documentation

◆ operator<<() [1/2]

QDataStream & operator<< ( QDataStream & s,
const QIcon & icon )

Definition at line 1919 of file qicon.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug dbg,
const QIcon & i )

Definition at line 2012 of file qicon.cpp.

◆ operator>>()

QDataStream & operator>> ( QDataStream & s,
QIcon & icon )

Definition at line 1957 of file qicon.cpp.

◆ qt_findAtNxFile()

QString qt_findAtNxFile ( const QString & baseFileName,
qreal targetDevicePixelRatio,
qreal * sourceDevicePixelRatio )
Since
5.6 Attempts to find a suitable @Nx file for the given targetDevicePixelRatio Returns the baseFileName if no such file was found.

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

Definition at line 2053 of file qicon.cpp.