Fix QT rendering problems