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

void QPainter::drawText ( const QPointF position,
const QString text 
) [inherited]

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (
), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note:
The y-position is used as the baseline of the font.

Definition at line 4876 of file qpainter.cpp.

Referenced by QPainter::boundingRect(), Q3CanvasText::draw(), QCommonStyle::drawComplexControl(), QCleanlooksStyle::drawComplexControl(), QPlastiqueStyle::drawComplexControl(), QWindowsXPStyle::drawComplexControl(), QSplashScreen::drawContents(), QPlastiqueStyle::drawControl(), QWindowsVistaStyle::drawControl(), QCleanlooksStyle::drawControl(), QMotifStyle::drawControl(), QWindowsStyle::drawControl(), QWindowsXPStyle::drawControl(), RenderArea::drawCoordinates(), GLWidget::drawInstructions(), QCleanlooksStyle::drawItemText(), QStyle::drawItemText(), QPainter::drawText(), QPicture::exec(), BasicToolsPlugin::mouseMove(), Q3ListBoxPixmap::paint(), Helper::paint(), Q3CheckTableItem::paint(), Q3TableItem::paint(), Q3ComboTableItem::paint(), Q3ListBoxText::paint(), Q3ListViewItem::paintCell(), CombinedTransformation::paintEvent(), QStatusBar::paintEvent(), MandelbrotWidget::paintEvent(), BasicOperations::paintEvent(), Document::paintEvent(), CharacterWidget::paintEvent(), WigglyWidget::paintEvent(), Q3ComboBox::paintEvent(), Q3DataTable::paintField(), Q3IconViewItem::paintItem(), and QtFontPropertyManager::valueIcon().

{
    drawText(p, str, 0, 0);
}


Generated by  Doxygen 1.6.0   Back to index