take a look at this method
void QTextDocument::drawContents ( QPainter * p, const QRectF & rect = QRectF() )
take a look at this method
void QTextDocument::drawContents ( QPainter * p, const QRectF & rect = QRectF() )
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Old post, but I am having problems with QTextEdit. I looked into QTextDocument::drawContents, but all that ever draws is the text. Where is the cursor???
Qt Code:
{ document()->drawContents(&painter,viewport()->rect()); }To copy to clipboard, switch view to plain text mode
Bookmarks