Extending Qt Creator Manual | StyleHelper

Extending Qt Creator Manual 4.6.2

# StyleHelper Class

(Utils::StyleHelper)

- List of all members, including inherited members

## Static Public Members

QColor | alphaBlendedColors(const QColor &colorA, const QColor &colorB)
QList<int> | availableImageResolutions(const QString &fileName)
QColor | baseColor(bool lightColored = false)
QColor | borderColor(bool lightColored = false)
QColor | buttonTextColor()
QPixmap | disabledSideBarIcon(const QPixmap &enabledicon)
QString | dpiSpecificImageFile(const QString &fileName)
void | drawArrow(QStyle::PrimitiveElement element, QPainter *painter, const QStyleOption *option)
void | drawCornerImage(const QImage &img, QPainter *painter, const QRect &rect, int left = 0, int top = 0, int right = 0, int bottom = 0)
void | drawIconWithShadow(const QIcon &icon, const QRect &rect, QPainter *p, QIcon::Mode iconMode, int dipRadius = 3, const QColor &color = QColor( 0, 0, 0, 130 ), const QPoint &dipOffset = QPoint( 1, -2 ))
QColor | highlightColor(bool lightColored = false)
void | horizontalGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect, bool lightColored = false)
QString | imageFileWithResolution(const QString &fileName, int dpr)
void | menuGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect)
QColor | mergedColors(const QColor &colorA, const QColor &colorB, int factor = 50)
int | navigationWidgetHeight()
QColor | notTooBrightHighlightColor()
QColor | panelTextColor(bool lightColored = false)
QColor | requestedBaseColor()
void | setBaseColor(const QColor &color)
QColor | shadowColor(bool lightColored = false)
QPalette | sidebarFontPalette(const QPalette &original)
qreal | sidebarFontSize()
QColor | sidebarHighlight()
QColor | sidebarShadow()
QLinearGradient | statusBarGradient(const QRect &statusBarRect)
void | tintImage(QImage &img, const QColor &tintColor)
QColor | toolBarBorderColor()
QColor | toolBarDropShadowColor()
bool | usePixmapCache()
void | verticalGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect, bool lightColored = false)

## Member Function Documentation

### `[static]` QColor StyleHelper::alphaBlendedColors(const QColor &colorA, const QColor &colorB)

### `[static]` QList<int> StyleHelper::availableImageResolutions(const QString &fileName)

### `[static]` QColor StyleHelper::baseColor(bool lightColored = false)

See also setBaseColor().

### `[static]` QColor StyleHelper::borderColor(bool lightColored = false)

### `[static]` QColor StyleHelper::buttonTextColor()

### `[static]` QPixmap StyleHelper::disabledSideBarIcon(const QPixmap &enabledicon)

### `[static]` QString StyleHelper::dpiSpecificImageFile(const QString &fileName)

### `[static]` void StyleHelper::drawArrow(QStyle::PrimitiveElement element, QPainter *painter, const QStyleOption *option)

### `[static]` void StyleHelper::drawCornerImage(const QImage &img, QPainter *painter, const QRect &rect, int left = 0, int top = 0, int right = 0, int bottom = 0)

### `[static]` void StyleHelper::drawIconWithShadow(const QIcon &icon, const QRect &rect, QPainter *p, QIcon::Mode iconMode, int dipRadius = 3, const QColor &color = QColor( 0, 0, 0, 130 ), const QPoint &dipOffset = QPoint( 1, -2 ))

### `[static]` QColor StyleHelper::highlightColor(bool lightColored = false)

### `[static]` void StyleHelper::horizontalGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect, bool lightColored = false)

### `[static]` QString StyleHelper::imageFileWithResolution(const QString &fileName, int dpr)

### `[static]` void StyleHelper::menuGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect)

### `[static]` QColor StyleHelper::mergedColors(const QColor &colorA, const QColor &colorB, int factor = 50)

### `[static]` int StyleHelper::navigationWidgetHeight()

### `[static]` QColor StyleHelper::notTooBrightHighlightColor()

### `[static]` QColor StyleHelper::panelTextColor(bool lightColored = false)

### `[static]` QColor StyleHelper::requestedBaseColor()

### `[static]` void StyleHelper::setBaseColor(const QColor &color)

See also baseColor().

### `[static]` QColor StyleHelper::shadowColor(bool lightColored = false)

### `[static]` QPalette StyleHelper::sidebarFontPalette(const QPalette &original)

### `[static]` qreal StyleHelper::sidebarFontSize()

### `[static]` QColor StyleHelper::sidebarHighlight()

### `[static]` QColor StyleHelper::sidebarShadow()

### `[static]` QLinearGradient StyleHelper::statusBarGradient(const QRect &statusBarRect)

### `[static]` void StyleHelper::tintImage(QImage &img, const QColor &tintColor)

### `[static]` QColor StyleHelper::toolBarBorderColor()

### `[static]` QColor StyleHelper::toolBarDropShadowColor()

### `[static]` bool StyleHelper::usePixmapCache()

### `[static]` void StyleHelper::verticalGradient(QPainter *painter, const QRect &spanRect, const QRect &clipRect, bool lightColored = false)