
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQGtkStyle class provides a widget style rendered by GTK+More...
| Header: | #include <QGtkStyle> |
| Since: | Qt 4.5 |
| Inherits: | QCleanlooksStyle |
| virtual void | drawComplexControl(ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget) const |
| virtual void | drawControl(ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const |
| virtual void | drawItemPixmap(QPainter * painter, const QRect & rect, int alignment, const QPixmap & pixmap) const |
| virtual void | drawItemText(QPainter * painter, const QRect & rect, int alignment, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole) const |
| virtual void | drawPrimitive(PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const |
| virtual QPixmap | generatedIconPixmap(QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt) const |
| virtual QStyle::SubControl | hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w) const |
| virtual QRect | itemPixmapRect(const QRect & r, int flags, const QPixmap & pixmap) const |
| virtual int | pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const |
| virtual void | polish(QWidget * widget) |
| virtual void | polish(QApplication * app) |
| virtual void | polish(QPalette & palette) |
| virtual QSize | sizeFromContents(ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget) const |
| virtual QPalette | standardPalette() const |
| virtual QPixmap | standardPixmap(StandardPixmap sp, const QStyleOption * option, const QWidget * widget) const |
| virtual int | styleHint(StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData) const |
| virtual QRect | subControlRect(ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget) const |
| virtual QRect | subElementRect(SubElement element, const QStyleOption * option, const QWidget * widget) const |
| virtual void | unpolish(QWidget * widget) |
| virtual void | unpolish(QApplication * app) |
| bool | getGConfBool(const QString & key, bool fallback = 0) |
| QString | getGConfString(const QString & value, const QString & fallback = QString()) |
TheQGtkStyle class provides a widget style rendered by GTK+
TheQGtkStyle style provides a look and feel that integrates well into GTK-based desktop environments such as the XFCe and GNOME.
It does this by making use of the GTK+ theme engine, ensuring that Qt applications look and feel native on these platforms.
Note: The style requires GTK+ version 2.10 or later. The Qt3-based "Qt" GTK+ theme engine will not work withQGtkStyle.
See alsoCleanlooks Style Widget Gallery,QWindowsXPStyle,QMacStyle,QWindowsStyle,QCDEStyle,QMotifStyle,QPlastiqueStyle, andQCleanlooksStyle.
Constructs aQGtkStyle object.
Destroys theQGtkStyle object.
[virtual]void QGtkStyle::drawComplexControl(ComplexControl control, constQStyleOptionComplex * option,QPainter * painter, constQWidget * widget) constReimplemented fromQStyle::drawComplexControl().
[virtual]void QGtkStyle::drawControl(ControlElement element, constQStyleOption * option,QPainter * painter, constQWidget * widget) constReimplemented fromQStyle::drawControl().
[virtual]void QGtkStyle::drawItemPixmap(QPainter * painter, constQRect & rect,int alignment, constQPixmap & pixmap) constReimplemented fromQStyle::drawItemPixmap().
[virtual]void QGtkStyle::drawItemText(QPainter * painter, constQRect & rect,int alignment, constQPalette & pal,bool enabled, constQString & text,QPalette::ColorRole textRole) constReimplemented fromQStyle::drawItemText().
[virtual]void QGtkStyle::drawPrimitive(PrimitiveElement element, constQStyleOption * option,QPainter * painter, constQWidget * widget) constReimplemented fromQStyle::drawPrimitive().
[virtual]QPixmap QGtkStyle::generatedIconPixmap(QIcon::Mode iconMode, constQPixmap & pixmap, constQStyleOption * opt) constReimplemented fromQStyle::generatedIconPixmap().
[static]bool QGtkStyle::getGConfBool(constQString & key,bool fallback = 0)Returns the configuration boolean forkey. Returnsfallback ifkey is not found.
[static]QString QGtkStyle::getGConfString(constQString & value, constQString & fallback = QString())Returns the configuration string forvalue. Returnsfallback ifvalue is not found.
[virtual]QStyle::SubControl QGtkStyle::hitTestComplexControl(ComplexControl cc, constQStyleOptionComplex * opt, constQPoint & pt, constQWidget * w) constReimplemented fromQStyle::hitTestComplexControl().
[virtual]QRect QGtkStyle::itemPixmapRect(constQRect & r,int flags, constQPixmap & pixmap) constReimplemented fromQStyle::itemPixmapRect().
[virtual]int QGtkStyle::pixelMetric(PixelMetric metric, constQStyleOption * option = 0, constQWidget * widget = 0) constReimplemented fromQStyle::pixelMetric().
[virtual]void QGtkStyle::polish(QWidget * widget)Reimplemented fromQStyle::polish().
[virtual]void QGtkStyle::polish(QApplication * app)Reimplemented fromQStyle::polish().
[virtual]void QGtkStyle::polish(QPalette & palette)Reimplemented fromQStyle::polish().
[virtual]QSize QGtkStyle::sizeFromContents(ContentsType type, constQStyleOption * option, constQSize & size, constQWidget * widget) constReimplemented fromQStyle::sizeFromContents().
[virtual]QPalette QGtkStyle::standardPalette() constReimplemented fromQStyle::standardPalette().
[virtual]QPixmap QGtkStyle::standardPixmap(StandardPixmap sp, constQStyleOption * option, constQWidget * widget) constReimplemented fromQStyle::standardPixmap().
[virtual]int QGtkStyle::styleHint(StyleHint hint, constQStyleOption * option, constQWidget * widget,QStyleHintReturn * returnData) constReimplemented fromQStyle::styleHint().
[virtual]QRect QGtkStyle::subControlRect(ComplexControl control, constQStyleOptionComplex * option,SubControl subControl, constQWidget * widget) constReimplemented fromQStyle::subControlRect().
[virtual]QRect QGtkStyle::subElementRect(SubElement element, constQStyleOption * option, constQWidget * widget) constReimplemented fromQStyle::subElementRect().
[virtual]void QGtkStyle::unpolish(QWidget * widget)Reimplemented fromQStyle::unpolish().
[virtual]void QGtkStyle::unpolish(QApplication * app)Reimplemented fromQStyle::unpolish().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.