Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Member Functions
qSlicerIconEnginePlugin Class Reference

#include <Base/QTGUI/qSlicerIconEnginePlugin.h>

Inheritance diagram for qSlicerIconEnginePlugin:
Inheritance graph
[legend]
Collaboration diagram for qSlicerIconEnginePlugin:
Collaboration graph
[legend]

Public Member Functions

 qSlicerIconEnginePlugin (QObject *parent=0)
 

Detailed Description

Customized ctkIconEnginePlugin to look for icons in specific directories. By default it will look for icons in the Small/Medium/Large and XLarge directories. To be working, each icon resolution must be added into each subdirectory (Resources/Icons/Small, Resources/Icons/Medium...) using the same file name. All files must be referenced in the resource file (.qrc). In the code, only refer to one icon resolution. Example:

QIcon icon(":Medium/AnIcon.png");

When the icon is asked for a pixmap at a given resolution, automatically, the icon engine picks the best icon file for the requested size.

icon.pixmap(128, 128);

will use the icon in the XLarge subdirectory instead of the icon in the Medium subdirectory.

Definition at line 48 of file qSlicerIconEnginePlugin.h.

Constructor & Destructor Documentation

◆ qSlicerIconEnginePlugin()

qSlicerIconEnginePlugin::qSlicerIconEnginePlugin ( QObject *  parent = 0)

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