[QUOTE=ToddAtWSU]
for( int i = 0 ; i < (xMax - xMin) / xStepSize ; i++ )
{
renderText
( (xMin
+ i
* xStepSize,
0.01,
QString::number( point
[i
] ) );
}
for( int i = 0 ; i < (xMax - xMin) / xStepSize ; i++ )
{
renderText( (xMin + i * xStepSize, 0.01, QString::number( point[i] ) );
}
To copy to clipboard, switch view to plain text mode
BTW, your renderText has mismatching brackets.
I have a doubt regarding your problem.
There are 2 signatures in renderText() available in Qt.
renderText
( int x,
int y,
const QString & str,
const QFont & fnt
= QFont(),
int listBase
= 2000 )renderText
( double x,
double y,
double z,
const QString & str,
const QFont & fnt
= QFont(),
int listBase
= 2000 )
renderText ( int x, int y, const QString & str, const QFont & fnt = QFont(), int listBase = 2000 )
renderText ( double x, double y, double z, const QString & str, const QFont & fnt = QFont(), int listBase = 2000 )
To copy to clipboard, switch view to plain text mode
It seems like you have been using the first signature ( the one with int x and int y)...
I feel that you intended to use the second signature because you are using 0.01 as your Y value.
But to your original problem of slow translation I can't find any good reason why your text slows your translations so much. It doesn't do the same with me. If you figure out a solution on your own, please post it.
Bookmarks