Qt 5.11: UI element refreshed only when clicked

99 views Asked by At

I have a project developed in an old version of Qt for Mac, maybe version 4. I have opened the project in the current version 5.11 for Mac. It seems that the QtDeclarative is no longer available. So, the only change I did was to remove this line from the project's .pro file.

QT += declarative

The project compiles and runs on macOS High Sierra. However, for the some UI elements, e.g. QTableWidget and QTreeWidget, I find that I need to click on the element for it to be refreshed after its content has been changed programmatically. This was not the case when the project was made in the previous version of Qt. Any help for this?

0

There are 0 answers