I'm not sure if this is a bug in Qt 5.4.1 or I'm doing something wrong. Here is my stripped down code that is failing to repaint the window EXCEPT when I call resize() after a repaint(). If you run the code below, it'll properly repaint the window. If you remove the last call to resize() at the bottom, it will NOT repaint the window. Any help is appreciated. Thanks.
QPlainTextEdit mytextbox;
mytextbox.resize(500,500);
mytextbox.insertPlainText("first string");
mytextbox.show();
mytextbox.insertPlainText("DID IT CHANGE??");
sleep(1);
mytextbox.repaint();
mytextbox.resize(500,501);![]()
Bookmarks