Build this test only if Qt5::Widgets is available.