SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Protected Attributes | List of all members
smtk::extension::SVGIconEngine Class Reference

A class to render SVG into a QIcon. More...

#include <SVGIconEngine.h>

Inheritance diagram for smtk::extension::SVGIconEngine:
[legend]
Collaboration diagram for smtk::extension::SVGIconEngine:
[legend]

Public Member Functions

 SVGIconEngine (const std::string &iconBuffer)
 
void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
 
QIconEngine * clone () const override
 
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 

Protected Attributes

QByteArray data
 

Detailed Description

A class to render SVG into a QIcon.

This class is adapted from StackOverflow: https://stackoverflow.com/questions/43125339/creating-qicon-from-svg-contents-in-memory


The documentation for this class was generated from the following files: