Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QWidget::update (  )  [slot, inherited]

Updates the widget unless updates are disabled or the widget is hidden.

This function does not cause an immediate repaint; instead it schedules a paint event for processing when Qt returns to the main event loop. This permits Qt to optimize for more speed and less flicker than a call to repaint() does.

Calling update() several times normally results in just one paintEvent() call.

Qt normally erases the widget's area before the paintEvent() call. If the Qt::WA_OpaquePaintEvent widget attribute is set, the widget is responsible for painting all its pixels with an opaque color.

See also:
repaint() paintEvent(), setUpdatesEnabled(), {Analog Clock Example}

Reimplemented in Q3DataBrowser.

Definition at line 883 of file qbackingstore.cpp.

Referenced by QMenuBar::actionEvent(), QMenu::actionEvent(), Q3Header::addLabel(), QLineEdit::changeEvent(), QWidget::changeEvent(), QDockWidget::changeEvent(), Q3ListBox::changeEvent(), Q3ListView::changeEvent(), Q3ComboBox::changeItem(), QTreeView::collapse(), QTreeView::columnCountChanged(), Q3IconView::contentsDragMoveEvent(), Q3IconView::contentsMouseReleaseEvent(), Q3ComboBox::currentChanged(), QLineEdit::dragLeaveEvent(), QLineEdit::dragMoveEvent(), Q3TextEdit::drawCursor(), Q3IconView::drawDragShapes(), Q3ListBox::drawRubber(), QLineEdit::dropEvent(), QToolButton::enterEvent(), QSplitterHandle::event(), QTabBar::event(), QGroupBox::event(), QWidget::event(), QStatusBar::event(), Q3MainWindow::event(), QWindowsStyle::eventFilter(), QX11EmbedContainer::eventFilter(), QGroupBox::focusInEvent(), QComboBox::focusInEvent(), QWidget::focusInEvent(), QLineEdit::focusInEvent(), QComboBox::focusOutEvent(), QLineEdit::focusOutEvent(), QWidget::focusOutEvent(), Q3Header::handleColumnMove(), QLineEdit::inputMethodEvent(), Q3IconView::insertItem(), Q3ComboBox::insertItem(), Q3ComboBox::insertStringList(), Q3ComboBox::insertStrList(), Q3Header::keyPressEvent(), QLineEdit::keyPressEvent(), QToolButton::leaveEvent(), QTreeView::mouseDoubleClickEvent(), QRadioButton::mouseMoveEvent(), QGroupBox::mouseMoveEvent(), QCheckBox::mouseMoveEvent(), QScrollBar::mouseMoveEvent(), QTreeView::mousePressEvent(), QGroupBox::mousePressEvent(), QLineEdit::mousePressEvent(), QSlider::mousePressEvent(), QMenu::mousePressEvent(), QMenuBar::mousePressEvent(), QSlider::mouseReleaseEvent(), Q3ScrollView::moveContents(), QTreeView::moveCursor(), Q3TextEdit::optimAppend(), Q3ComboBox::popup(), QSvgWidget::QSvgWidget(), Q3ListView::removeColumn(), Q3ComboBox::removeItem(), Q3Header::removeLabel(), QWidget::repaint(), Q3IconView::repaintSelectedItems(), QGraphicsView::resetCachedContent(), Q3ScrollView::resizeContents(), Q3Header::resizeEvent(), QAbstractSpinBox::resizeEvent(), Q3Header::resizeSection(), QWidget::scroll(), QAbstractScrollArea::scrollContentsBy(), QGraphicsView::scrollContentsBy(), Q3CanvasView::setCanvas(), Q3ListView::setColumnWidth(), QWidget::setContentsMargins(), QFrame::setFrameStyle(), Q3Header::setLabel(), Q3ComboBox::setLineEdit(), QComboBox::setLineEdit(), QWidget::setMask(), QGraphicsView::setMatrix(), QPushButton::setMenu(), QToolButton::setMenu(), QGraphicsView::setRenderHint(), QTableView::setRootIndex(), QComboBox::setRootModelIndex(), QLineEdit::setSelection(), Q3Header::setSortIndicator(), QApplication::setStyle(), QTabBar::setTabEnabled(), QTabBar::setTabIcon(), QTabBar::setTabTextColor(), Q3CanvasView::setWorldMatrix(), QAbstractSlider::sliderChange(), QWindowsStyle::timerEvent(), QPlastiqueStyle::timerEvent(), QMotifStyle::timerEvent(), Q3Canvas::update(), QWidget::update(), Q3Table::updateCell(), Q3IconView::updateContents(), Q3ScrollView::updateContents(), QGraphicsView::updateScene(), and QX11EmbedContainer::x11Event().

{
    update(rect());
}


Generated by  Doxygen 1.6.0   Back to index