Whonix and torrents

Hello everyone!

I was wondering if whonix would work with torrents without leaking the real ip since tor could leak the ip.
Also, what would happen if the official pia client is used on top of whonix and/or torrent traffic also gets rerouted over a proxy inside qbittorrent?

Thanks for your help

It won’t leak your IP but, Bittorrent over Tor isn’t a good idea.