There is some behavior changes in QStyle states after upgrading to Qt6. I don't know is it the best solution.