Qt Code:
QString string; for (int i = 0; i < 50000; i++) { string += 'o'; } test->setText(string); test->show();To copy to clipboard, switch view to plain text mode
== Super slow window resize.
How can I optimize this ?
Qt Code:
QString string; for (int i = 0; i < 50000; i++) { string += 'o'; } test->setText(string); test->show();To copy to clipboard, switch view to plain text mode
== Super slow window resize.
How can I optimize this ?
I assume its the word wrap that's killing your performance here. If you really need fast resizes, I would suggest manual word wrap + scroll bars.
bunjee (12th May 2008)
You're right, the word wrap seems to be the reason.
Did you implement your own wordwrap algorithm ? Why is qt's default one so slow ?
I'll take a look.
Bookmarks