Qt Code:
  1. QTextEdit * test = new QTextEdit;
  2. QString string;
  3. for (int i = 0; i < 50000; i++)
  4. {
  5. string += 'o';
  6. }
  7. test->setText(string);
  8. test->show();
To copy to clipboard, switch view to plain text mode 

== Super slow window resize.

How can I optimize this ?