I've found out that it has already been implemented. https://bugreports.qt.io/browse/QTBUG-50544