Build a less (unix http://linux.about.com/library/cmd/blcmdl1_less.htm ) similar function .... and limit him to 20-30 line....
and as slot a vertical slider...... tickintervall 30-20
and get line from file ..... chanche this code to get line start and end...
is very fast....
Qt Code:
{ QString result; int currentLineNr = 0; // or 1 while( ! in.atEnd() ) { if( currentLineNr == linenr ) { /* only rewrite here .. lineNr */ result = line; break; } currentLineNr += 1; /*qDebug() << "### linerr " << currentLineNr; */ } } return result; }To copy to clipboard, switch view to plain text mode
Bookmarks