PyQt question: Connect the X button to a function in a Tab
Posted: Thu Apr 29, 2021 12:41 am
I have a tab in the client that listens for data from a socket.
When I close the client I cant get the Tab to shut down the socket.
I have tried a number of ways to trigger a function on close but failing.
Here is the closest example on stack overflow I can find.
https://stackoverflow.com/questions/403 ... qtabwidget
I was hoping somoene with intimate knowledge of the front end of the client can help me.
Cheers
Joe
When I close the client I cant get the Tab to shut down the socket.
I have tried a number of ways to trigger a function on close but failing.
Here is the closest example on stack overflow I can find.
https://stackoverflow.com/questions/403 ... qtabwidget
I was hoping somoene with intimate knowledge of the front end of the client can help me.
Cheers
Joe