DBPainter Class Reference

[DataWidget Index] [DataWidget Hierarchy]


A widget used in a DBGrid needs a DBPainter More...

#include <dbpainter.h>

Public Members

Protected Members


Detailed Description

A widget used in a DBGrid needs a DBPainter


virtual void paint(QPainter *painter, int width, int height, int align = 0, const char *format = 0)

Draw a representation of the database value into a cell of a DBGrid. The datasource of the grid points to the proper record.

Parameters:
width The width of the cell.
format A printf or strftime format string. WARNING the resust string must not exeed 8000 bytes!
height The height of the cell.
align The alignment is the bitwise OR of the QLabel alignment flags
painter A painter with a reasonable font and color.

static void doPaint(QString &str, QPainter *painter, int width, int height, int align = 0)

The paint method my use this generic method.


  • Author: Edwin Glaser Edwin Glaser
  • Version: $Name: $ $Date: 2000/02/07 21:42:02 $
  • Documentation generated by eg@wonko on Sam Feb 19 00:09:53 MET 2000
Kdoc