A better way to detect Qt5