Only include Qt widgets if we are using Qt 5.