Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos
Referencia de la Clase QtTableView

#include <qttableview.h>

Diagrama de herencias de QtTableView
QFrame QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QtMultiLineEdit

Lista de todos los miembros.

Métodos públicos

virtual void setBackgroundColor (const QColor &)
virtual void setPalette (const QPalette &)
void show ()
void repaint (bool erase=TRUE)
void repaint (int x, int y, int w, int h, bool erase=TRUE)
void repaint (const QRect &, bool erase=TRUE)

Métodos protegidos

 QtTableView (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~QtTableView ()
int numRows () const
virtual void setNumRows (int)
int numCols () const
virtual void setNumCols (int)
int topCell () const
virtual void setTopCell (int row)
int leftCell () const
virtual void setLeftCell (int col)
virtual void setTopLeftCell (int row, int col)
int xOffset () const
virtual void setXOffset (int)
int yOffset () const
virtual void setYOffset (int)
virtual void setOffset (int x, int y, bool updateScrBars=TRUE)
virtual int cellWidth (int col)
virtual int cellHeight (int row)
int cellWidth () const
int cellHeight () const
virtual void setCellWidth (int)
virtual void setCellHeight (int)
virtual int totalWidth ()
virtual int totalHeight ()
uint tableFlags () const
bool testTableFlags (uint f) const
virtual void setTableFlags (uint f)
void clearTableFlags (uint f=~0)
bool autoUpdate () const
virtual void setAutoUpdate (bool)
void updateCell (int row, int column, bool erase=TRUE)
QRect cellUpdateRect () const
QRect viewRect () const
int lastRowVisible () const
int lastColVisible () const
bool rowIsVisible (int row) const
bool colIsVisible (int col) const
QScrollBarverticalScrollBar () const
QScrollBarhorizontalScrollBar () const
virtual void paintCell (QPainter *, int row, int col)=0
virtual void setupPainter (QPainter *)
void paintEvent (QPaintEvent *)
void resizeEvent (QResizeEvent *)
int findRow (int yPos) const
int findCol (int xPos) const
bool rowYPos (int row, int *yPos) const
bool colXPos (int col, int *xPos) const
int maxXOffset ()
int maxYOffset ()
int maxColOffset ()
int maxRowOffset ()
int minViewX () const
int minViewY () const
int maxViewX () const
int maxViewY () const
int viewWidth () const
int viewHeight () const
void scroll (int xPixels, int yPixels)
void updateScrollBars ()
void updateTableSize ()

Documentación del constructor y destructor

QtTableView::QtTableView ( QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
) [protected]
QtTableView::~QtTableView ( ) [protected]

Documentación de las funciones miembro

bool QtTableView::autoUpdate ( ) const [inline, protected]

Reimplementado en QtMultiLineEdit.

int QtTableView::cellHeight ( int  row) [protected, virtual]
int QtTableView::cellHeight ( ) const [inline, protected]
QRect QtTableView::cellUpdateRect ( ) const [inline, protected]
int QtTableView::cellWidth ( int  col) [protected, virtual]
int QtTableView::cellWidth ( ) const [inline, protected]
void QtTableView::clearTableFlags ( uint  f = ~0) [protected]
bool QtTableView::colIsVisible ( int  col) const [protected]
bool QtTableView::colXPos ( int  col,
int xPos 
) const [protected]
int QtTableView::findCol ( int  xPos) const [protected]
int QtTableView::findRow ( int  yPos) const [protected]
QScrollBar * QtTableView::horizontalScrollBar ( ) const [protected]
int QtTableView::lastColVisible ( ) const [protected]
int QtTableView::lastRowVisible ( ) const [protected]
int QtTableView::leftCell ( ) const [inline, protected]
int QtTableView::maxColOffset ( ) [protected]
int QtTableView::maxRowOffset ( ) [protected]
int QtTableView::maxViewX ( ) const [protected]
int QtTableView::maxViewY ( ) const [protected]
int QtTableView::maxXOffset ( ) [protected]
int QtTableView::maxYOffset ( ) [protected]
int QtTableView::minViewX ( ) const [protected]
int QtTableView::minViewY ( ) const [protected]
int QtTableView::numCols ( ) const [inline, protected]
int QtTableView::numRows ( ) const [inline, protected]
virtual void QtTableView::paintCell ( QPainter ,
int  row,
int  col 
) [protected, pure virtual]

Implementado en QtMultiLineEdit.

void QtTableView::paintEvent ( QPaintEvent event) [protected, virtual]

Processes the paint event event.

Paints the frame and the contents.

Opens the painter on the frame and calls drawFrame(), then drawContents().

Reimplementado de QFrame.

void QtTableView::repaint ( int  x,
int  y,
int  w,
int  h,
bool  erase = TRUE 
)

Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.

Erases the widget area (x,y,w,h) if erase is TRUE.

If w is negative, it is replaced with width() - x. If h is negative, it is replaced width height() - y.

Use repaint if your widget needs to be repainted immediately, for example when doing some animation. In all other cases, update() is to be preferred. Calling update() many times in a row will generate a single paint event.

Atención:
If you call repaint() in a function which may itself be called from paintEvent(), you may see infinite recursion. The update() function never generates recursion.
Ver también:
update(), paintEvent(), setUpdatesEnabled(), erase()

Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden.

If erase is TRUE, Qt erases the area (x, y, w, h) before the paintEvent() call.

If w is negative, it is replaced with {width() - x}, and if h is negative, it is replaced width {height() - y}.

We suggest only using repaint() if you need an immediate repaint, for example during animation. In almost all circumstances update() is better, as it permits Qt to optimize for speed and minimize flicker.

Atención:
If you call repaint() in a function which may itself be called from paintEvent(), you may get infinite recursion. The update() function never causes recursion.
Ver también:
update(), paintEvent(), setUpdatesEnabled(), erase()

Reimplementado de QWidget.

void QtTableView::repaint ( bool  erase = TRUE) [inline]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

This version repaints the entire widget.

Reimplementado de QWidget.

void QtTableView::repaint ( const QRect r,
bool  erase = TRUE 
) [inline]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.

Erases the widget region r if erase is TRUE.

Reimplementado de QWidget.

void QtTableView::resizeEvent ( QResizeEvent e) [protected, virtual]

Processes the resize event e.

Adjusts the frame rectangle for the resized widget. The frame rectangle is elastic, and the surrounding area is static.

The resulting frame rectangle may be null or invalid. You can use setMinimumSize() to avoid those possibilities.

Nothing is done if the frame rectangle is a null rectangle already.

Reimplementado de QFrame.

Reimplementado en QtMultiLineEdit.

bool QtTableView::rowIsVisible ( int  row) const [protected]
bool QtTableView::rowYPos ( int  row,
int yPos 
) const [protected]
void QtTableView::scroll ( int  dx,
int  dy 
) [protected]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. This version of the function scrolls the entire widget and moves the widget's children along with the scroll.

Ver también:
bitBlt() QScrollView

Scrolls the widget including its children dx pixels to the right and dy downwards. Both dx and dy may be negative.

After scrolling, scroll() sends a paint event for the the part that is read but not written. For example, when scrolling 10 pixels rightwards, the leftmost ten pixels of the widget need repainting. The paint event may be delivered immediately or later, depending on some heuristics (note that you might have to force processing of paint events using QApplication::sendPostedEvents() when using scroll() and move() in combination).

Ver también:
QScrollView erase() bitBlt()

Reimplementado de QWidget.

void QtTableView::setAutoUpdate ( bool  enable) [protected, virtual]

Reimplementado en QtMultiLineEdit.

void QtTableView::setBackgroundColor ( const QColor c) [virtual]

Use setPaletteBackgroundColor() or setEraseColor() instead.

Reimplementado de QWidget.

void QtTableView::setCellHeight ( int  cellHeight) [protected, virtual]
void QtTableView::setCellWidth ( int  cellWidth) [protected, virtual]
void QtTableView::setLeftCell ( int  col) [protected, virtual]
void QtTableView::setNumCols ( int  cols) [protected, virtual]
void QtTableView::setNumRows ( int  rows) [protected, virtual]
void QtTableView::setOffset ( int  x,
int  y,
bool  updateScrBars = TRUE 
) [protected, virtual]
void QtTableView::setPalette ( const QPalette p) [virtual]

Reimplementado de QWidget.

void QtTableView::setTableFlags ( uint  f) [protected, virtual]
void QtTableView::setTopCell ( int  row) [protected, virtual]
void QtTableView::setTopLeftCell ( int  row,
int  col 
) [protected, virtual]
void QtTableView::setupPainter ( QPainter ) [protected, virtual]
void QtTableView::setXOffset ( int  x) [protected, virtual]
void QtTableView::setYOffset ( int  y) [protected, virtual]
void QtTableView::show ( ) [virtual]

Shows the widget and its child widgets.

If its size or position has changed, Qt guarantees that a widget gets move and resize events just before it is shown.

You almost never have to reimplement this function. If you need to change some settings before a widget is shown, use showEvent() instead. If you need to do some delayed initialization use polish().

Ver también:
showEvent(), hide(), showMinimized(), showMaximized(), showNormal(), isVisible(), polish()

Reimplementado de QWidget.

uint QtTableView::tableFlags ( ) const [inline, protected]
bool QtTableView::testTableFlags ( uint  f) const [inline, protected]
int QtTableView::topCell ( ) const [inline, protected]
int QtTableView::totalHeight ( ) [protected, virtual]
int QtTableView::totalWidth ( ) [protected, virtual]
void QtTableView::updateCell ( int  row,
int  column,
bool  erase = TRUE 
) [protected]
void QtTableView::updateScrollBars ( ) [inline, protected]
void QtTableView::updateTableSize ( ) [protected]
QScrollBar * QtTableView::verticalScrollBar ( ) const [protected]
int QtTableView::viewHeight ( ) const [protected]
QRect QtTableView::viewRect ( ) const [protected]
int QtTableView::viewWidth ( ) const [protected]
int QtTableView::xOffset ( ) const [inline, protected]
int QtTableView::yOffset ( ) const [inline, protected]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'