[qt5] port qt v-arrow renderring workaround from qt4.