KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KIconUtils Namespace Reference

from PyKDE5.kguiaddons.KIconUtils import *

Detailed Description


Functions

QIcon addOverlay (QIcon icon, QIcon overlay, Qt::Corner position)
QIcon addOverlays (QIcon icon, {Qt::Corner:QIcon} overlays)

Function Documentation

QIcon addOverlay ( QIcon  icon,
QIcon  overlay,
Qt::Corner  position
)

Adds the overlay over the icon in the specified position

The overlay icon is scaled down approx. to 1/3 or 1/4 (depending on the icon size) and placed in one of the corners of the base icon.

QIcon addOverlays ( QIcon  icon,
{Qt::Corner:QIcon}  overlays
)

Adds overlays over the icon

The overlays is a QHash of Qt.Corner and QIcon. The Qt.Corner value decides where the overlay icon will be painted, the QIcon value is the overlay icon to be painted.

The overlay icon is scaled down to 1/3 or 1/4 (depending on the icon size) and placed in one of the corners of the base icon.

  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal