I am writing a QTest based test case for a class that derives from QWidget.
After showing the widget, I want the test to end as soon as the widget is closed.
My first attempt was to use QSignalSpy, only to find out that QWidget really does not send out a signal on close().
So what is the "right way" to do this using QTest primitives?