Yes, this is the correct behaviour.
But then how do you write a unit test (in python) for this?
I see that from Qt's docs, but it isn't really clear from the PyQt4 docs, which imply that python's unittest framework should be used rather that Qt's QTestLib. Also, PyQt4 doesn't provide QTest::qExec(). Maybe I just need another cup of coffee, but it looks like the language does matter in this case...
If PyQt doesn't provide qExec then you simply can't use the framework or you need to provide your own wrapper to qExec.
Bookmarks