Hi,
My QTextDocument is full of text.
However, when I run this code QTextLayout::lineCount() return always 0.
Qt Code:
while(block.isValid()) { int nbL=layout->lineCount(); qDebug( "count lines = %i", nbL ); }To copy to clipboard, switch view to plain text mode
Am I missing something?
What's wrong with it?
Plz help me guys, thanks.
Bookmarks