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

QMotifStyle Class

TheQMotifStyle class provides Motif look and feel.More...

Header:#include <QMotifStyle>
Inherits:QCommonStyle
Inherited By:

QCDEStyle

Public Functions

QMotifStyle(bool useHighlightCols = false)
virtual~QMotifStyle()
voidsetUseHighlightColors(bool arg)
booluseHighlightColors() const

Reimplemented Public Functions

virtual voiddrawComplexControl(ComplexControl cc, const QStyleOptionComplex * opt, QPainter * p, const QWidget * widget = 0) const
virtual voiddrawControl(ControlElement element, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0) const
virtual voiddrawPrimitive(PrimitiveElement pe, const QStyleOption * opt, QPainter * p, const QWidget * w = 0) const
virtual boolevent(QEvent * e)
virtual intpixelMetric(PixelMetric pm, const QStyleOption * opt = 0, const QWidget * widget = 0) const
virtual voidpolish(QPalette & pal)
virtual QSizesizeFromContents(ContentsType ct, const QStyleOption * opt, const QSize & contentsSize, const QWidget * widget = 0) const
virtual QPalettestandardPalette() const
virtual QPixmapstandardPixmap(StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget = 0) const
virtual intstyleHint(StyleHint hint, const QStyleOption * opt = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0) const
virtual QRectsubControlRect(ComplexControl cc, const QStyleOptionComplex * opt, SubControl sc, const QWidget * widget = 0) const
virtual QRectsubElementRect(SubElement sr, const QStyleOption * opt, const QWidget * widget = 0) const
  • 16 public functions inherited fromQCommonStyle
  • 24 public functions inherited fromQStyle
  • 29 public functions inherited fromQObject

Reimplemented Protected Functions

virtual voidtimerEvent(QTimerEvent * event)
  • 8 protected functions inherited fromQObject

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
  • 8 protected functions inherited fromQObject
  • 2 protected slots inherited fromQStyle

Detailed Description

TheQMotifStyle class provides Motif look and feel.

This class implements the Motif look and feel. It closely resembles the original Motif look as defined by the Open Group, but with some minor improvements. The Motif style is Qt's default GUI style on Unix platforms.

See alsoQWindowsXPStyle,QMacStyle,QWindowsStyle,QPlastiqueStyle, andQCDEStyle.

Member Function Documentation

QMotifStyle::QMotifStyle(bool useHighlightCols = false)

Constructs aQMotifStyle.

IfuseHighlightCols is false (the default), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.

[virtual]QMotifStyle::~QMotifStyle()

This is an overloaded function.

Destroys the style.

[virtual]void QMotifStyle::drawComplexControl(ComplexControl cc, constQStyleOptionComplex * opt,QPainter * p, constQWidget * widget = 0) const

Reimplemented fromQStyle::drawComplexControl().

[virtual]void QMotifStyle::drawControl(ControlElement element, constQStyleOption * opt,QPainter * p, constQWidget * widget = 0) const

Reimplemented fromQStyle::drawControl().

[virtual]void QMotifStyle::drawPrimitive(PrimitiveElement pe, constQStyleOption * opt,QPainter * p, constQWidget * w = 0) const

Reimplemented fromQStyle::drawPrimitive().

[virtual]bool QMotifStyle::event(QEvent * e)

Reimplemented fromQObject::event().

[virtual]int QMotifStyle::pixelMetric(PixelMetric pm, constQStyleOption * opt = 0, constQWidget * widget = 0) const

Reimplemented fromQStyle::pixelMetric().

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

Reimplemented fromQStyle::polish().

void QMotifStyle::setUseHighlightColors(bool arg)

Ifarg is false, the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.

The effect will show up the next time an application palette is set viaQApplication::setPalette(). The current color palette of the application remains unchanged.

See alsouseHighlightColors() andQStyle::polish().

[virtual]QSize QMotifStyle::sizeFromContents(ContentsType ct, constQStyleOption * opt, constQSize & contentsSize, constQWidget * widget = 0) const

Reimplemented fromQStyle::sizeFromContents().

[virtual]QPalette QMotifStyle::standardPalette() const

Reimplemented fromQStyle::standardPalette().

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

Reimplemented fromQStyle::standardPixmap().

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

Reimplemented fromQStyle::styleHint().

[virtual]QRect QMotifStyle::subControlRect(ComplexControl cc, constQStyleOptionComplex * opt,SubControl sc, constQWidget * widget = 0) const

Reimplemented fromQStyle::subControlRect().

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

Reimplemented fromQStyle::subElementRect().

[virtual protected]void QMotifStyle::timerEvent(QTimerEvent * event)

Reimplemented fromQObject::timerEvent().

bool QMotifStyle::useHighlightColors() const

Returns true if the style treats the highlight colors of the palette in a Motif-like manner, which is a simple inversion between the base and the text color; otherwise returns false. The default is false.

See alsosetUseHighlightColors().

© 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