Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# Compatibility Members for QStyle

The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.

QStyle class reference

### Protected Functions

- void drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup & colorgroup, bool enabled, const QString & text, int len = -1, const QColor * penColor = 0 ) const
- void drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup colorgroup, bool enabled, const QPixmap & pixmap, const QColor * penColor = 0 ) const
- void drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup colorgroup, bool enabled, const QPixmap * pixmap, const QString & text, int len = -1, const QColor * penColor = 0 ) const

## Member Function Documentation

### void QStyle::drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup & colorgroup, bool enabled, const QString & text, int len = -1, const QColor * penColor = 0 ) const `[protected]`

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use one of the drawItem() overloads that takes a QPalette instead of a QColorGroup.

### void QStyle::drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup colorgroup, bool enabled, const QPixmap & pixmap, const QColor * penColor = 0 ) const `[protected]`

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use one of the drawItem() overloads that takes a QPalette instead of a QColorGroup.

### void QStyle::drawItem ( QPainter * p, const QRect & r, int flags, const QColorGroup colorgroup, bool enabled, const QPixmap * pixmap, const QString & text, int len = -1, const QColor * penColor = 0 ) const `[protected]`

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.