2. As long as it can be accessed, the slot/signal mechanism of Qt can work. So you must ensure that you can access an instance of class A (that is, the object you want to operate) and an instance of listview in the context of the domain where connect is located.
3. The way you instantiate is a bit strange. There should be a big problem with your Class A design. ..
4. Even after Qt5, the transfer mode of the connect parameter has changed, but it is essentially the same as Qt4. The sender must declare a method with the same signature in order to connect successfully.