Embedding PyQt into a custom python filter

Can i use widgets from PyQt into a custom python filter inherited from VTKPythonAlgorithmBase? I’ve created a simple example. It show a QDialog but don’t process mouse events on button.
Thanks in advance.
test_pyqt.py (2.0 KB)

I edited example. It work now. Is it a correct use case?

This is not a good practice in general. ParaView is intended to operate in client-server mode and desktop-only mode seamlessly. In client-server configuration, the TestEmbeddingPyQt will be instantiated only on the server processes. Hence the dialog that you pop up will show up on the server ranks and never on the client rank. If the server ranks are on remote HPC system for example, the user will never see the dialog!

Thanks, Utkarsh!