Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QGtkStyle Class

TheQGtkStyle class provides a widget style rendered by GTK+More...

Header:#include <QGtkStyle>
Since: Qt 4.5
Inherits:QCleanlooksStyle

Public Functions

Reimplemented Public Functions

virtual voiddrawComplexControl(ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget) const
virtual voiddrawControl(ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const
virtual voiddrawItemPixmap(QPainter * painter, const QRect & rect, int alignment, const QPixmap & pixmap) const
virtual voiddrawItemText(QPainter * painter, const QRect & rect, int alignment, const QPalette & pal, bool enabled, const QString & text, QPalette::ColorRole textRole) const
virtual voiddrawPrimitive(PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const
virtual QPixmapgeneratedIconPixmap(QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt) const
virtual QStyle::SubControlhitTestComplexControl(ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w) const
virtual QRectitemPixmapRect(const QRect & r, int flags, const QPixmap & pixmap) const
virtual intpixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const
virtual voidpolish(QWidget * widget)
virtual voidpolish(QApplication * app)
virtual voidpolish(QPalette & palette)
virtual QSizesizeFromContents(ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget) const
virtual QPalettestandardPalette() const
virtual QPixmapstandardPixmap(StandardPixmap sp, const QStyleOption * option, const QWidget * widget) const
virtual intstyleHint(StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData) const
virtual QRectsubControlRect(ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget) const
virtual QRectsubElementRect(SubElement element, const QStyleOption * option, const QWidget * widget) const
virtual voidunpolish(QWidget * widget)
virtual voidunpolish(QApplication * app)

Static Public Members

boolgetGConfBool(const QString & key, bool fallback = 0)
QStringgetGConfString(const QString & value, const QString & fallback = QString())
  • 6 static public members inherited fromQStyle
  • 7 static public members inherited fromQObject

Additional Inherited Members

Detailed Description

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.

Member Function Documentation

QGtkStyle::QGtkStyle()

Constructs aQGtkStyle object.

QGtkStyle::~QGtkStyle()

Destroys theQGtkStyle object.

[virtual]void QGtkStyle::drawComplexControl(ComplexControl control, constQStyleOptionComplex * option,QPainter * painter, constQWidget * widget) const

Reimplemented fromQStyle::drawComplexControl().

[virtual]void QGtkStyle::drawControl(ControlElement element, constQStyleOption * option,QPainter * painter, constQWidget * widget) const

Reimplemented fromQStyle::drawControl().

[virtual]void QGtkStyle::drawItemPixmap(QPainter * painter, constQRect & rect,int alignment, constQPixmap & pixmap) const

Reimplemented fromQStyle::drawItemPixmap().

[virtual]void QGtkStyle::drawItemText(QPainter * painter, constQRect & rect,int alignment, constQPalette & pal,bool enabled, constQString & text,QPalette::ColorRole textRole) const

Reimplemented fromQStyle::drawItemText().

[virtual]void QGtkStyle::drawPrimitive(PrimitiveElement element, constQStyleOption * option,QPainter * painter, constQWidget * widget) const

Reimplemented fromQStyle::drawPrimitive().

[virtual]QPixmap QGtkStyle::generatedIconPixmap(QIcon::Mode iconMode, constQPixmap & pixmap, constQStyleOption * opt) const

Reimplemented 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) const

Reimplemented fromQStyle::hitTestComplexControl().

[virtual]QRect QGtkStyle::itemPixmapRect(constQRect & r,int flags, constQPixmap & pixmap) const

Reimplemented fromQStyle::itemPixmapRect().

[virtual]int QGtkStyle::pixelMetric(PixelMetric metric, constQStyleOption * option = 0, constQWidget * widget = 0) const

Reimplemented 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) const

Reimplemented fromQStyle::sizeFromContents().

[virtual]QPalette QGtkStyle::standardPalette() const

Reimplemented fromQStyle::standardPalette().

[virtual]QPixmap QGtkStyle::standardPixmap(StandardPixmap sp, constQStyleOption * option, constQWidget * widget) const

Reimplemented fromQStyle::standardPixmap().

[virtual]int QGtkStyle::styleHint(StyleHint hint, constQStyleOption * option, constQWidget * widget,QStyleHintReturn * returnData) const

Reimplemented fromQStyle::styleHint().

[virtual]QRect QGtkStyle::subControlRect(ComplexControl control, constQStyleOptionComplex * option,SubControl subControl, constQWidget * widget) const

Reimplemented fromQStyle::subControlRect().

[virtual]QRect QGtkStyle::subElementRect(SubElement element, constQStyleOption * option, constQWidget * widget) const

Reimplemented 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.


[8]ページ先頭

©2009-2025 Movatter.jp