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

QCleanlooksStyle Class

TheQCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME.More...

Header:#include <QCleanlooksStyle>
Since: Qt 4.2
Inherits:QWindowsStyle
Inherited By:

QGtkStyle

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 & rectangle, int alignment, const QPalette & palette, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole) const
virtual voiddrawPrimitive(PrimitiveElement elem, const QStyleOption * option, QPainter * painter, const QWidget * widget = 0) const
virtual QPixmapgeneratedIconPixmap(QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt) const
virtual SubControlhitTestComplexControl(ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w = 0) 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 & pal)
virtual QSizesizeFromContents(ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget) const
virtual QPalettestandardPalette() const
virtual QPixmapstandardPixmap(StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget = 0) const
virtual intstyleHint(StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0) const
virtual QRectsubControlRect(ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget) const
virtual QRectsubElementRect(SubElement sr, const QStyleOption * opt, const QWidget * w = 0) const
virtual voidunpolish(QWidget * widget)
virtual voidunpolish(QApplication * app)

Additional Inherited Members

  • 1 property inherited fromQObject
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQObject
  • 6 static public members inherited fromQStyle
  • 7 static public members inherited fromQObject
  • 2 protected functions inherited fromQWindowsStyle
  • 8 protected functions inherited fromQObject
  • 2 protected slots inherited fromQStyle

Detailed Description

TheQCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME.

The Cleanlooks style provides a look and feel for widgets that closely resembles the Clearlooks style, introduced by Richard Stellingwerff and Daniel Borgmann.

See alsoCleanlooks Style Widget Gallery,QWindowsXPStyle,QMacStyle,QWindowsStyle,QCDEStyle,QMotifStyle, andQPlastiqueStyle.

Member Function Documentation

QCleanlooksStyle::QCleanlooksStyle()

Constructs aQCleanlooksStyle object.

QCleanlooksStyle::~QCleanlooksStyle()

Destroys theQCleanlooksStyle object.

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

Reimplemented fromQStyle::drawComplexControl().

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

Reimplemented fromQStyle::drawControl().

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

Reimplemented fromQStyle::drawItemPixmap().

[virtual]void QCleanlooksStyle::drawItemText(QPainter * painter, constQRect & rectangle,int alignment, constQPalette & palette,bool enabled, constQString & text,QPalette::ColorRole textRole = QPalette::NoRole) const

Reimplemented fromQStyle::drawItemText().

Draws the giventext in the specifiedrectangle using the providedpainter andpalette.

Text is drawn using the painter's pen. If an explicittextRole is specified, then the text is drawn using thepalette's color for the specified role. Theenabled value indicates whether or not the item is enabled; when reimplementing, this value should influence how the item is drawn.

The text is aligned and wrapped according to the specifiedalignment.

See alsoQt::Alignment.

[virtual]void QCleanlooksStyle::drawPrimitive(PrimitiveElement elem, constQStyleOption * option,QPainter * painter, constQWidget * widget = 0) const

Reimplemented fromQStyle::drawPrimitive().

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

Reimplemented fromQStyle::generatedIconPixmap().

[virtual]SubControl QCleanlooksStyle::hitTestComplexControl(ComplexControl cc, constQStyleOptionComplex * opt, constQPoint & pt, constQWidget * w = 0) const

Reimplemented fromQStyle::hitTestComplexControl().

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

Reimplemented fromQStyle::itemPixmapRect().

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

Reimplemented fromQStyle::pixelMetric().

[virtual]void QCleanlooksStyle::polish(QWidget * widget)

Reimplemented fromQStyle::polish().

[virtual]void QCleanlooksStyle::polish(QApplication * app)

Reimplemented fromQStyle::polish().

[virtual]void QCleanlooksStyle::polish(QPalette & pal)

Reimplemented fromQStyle::polish().

[virtual]QSize QCleanlooksStyle::sizeFromContents(ContentsType type, constQStyleOption * option, constQSize & size, constQWidget * widget) const

Reimplemented fromQStyle::sizeFromContents().

[virtual]QPalette QCleanlooksStyle::standardPalette() const

Reimplemented fromQStyle::standardPalette().

[virtual]QPixmap QCleanlooksStyle::standardPixmap(StandardPixmap standardPixmap, constQStyleOption * opt, constQWidget * widget = 0) const

Reimplemented fromQStyle::standardPixmap().

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

Reimplemented fromQStyle::styleHint().

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

Reimplemented fromQStyle::subControlRect().

[virtual]QRect QCleanlooksStyle::subElementRect(SubElement sr, constQStyleOption * opt, constQWidget * w = 0) const

Reimplemented fromQStyle::subElementRect().

[virtual]void QCleanlooksStyle::unpolish(QWidget * widget)

Reimplemented fromQStyle::unpolish().

[virtual]void QCleanlooksStyle::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