Two short steps:
Go to chrome://extensions and click on the options link of the extension. There chose qBittorrent from the drop-down list, put some username, password and any unused high port like 6883 as suggested.
Now open qBittorrent and go to options (or press alt+O).
There click Web UI option and enable it put the same port, user and password as in the extension and there you have it.
For Iceweasel the proceadure is just in the browser:
Type in the direction bar about:config.
In the search box type handler.expose
Right click, select new, boolean and write network.protocol-handler.expose.magnet in the preference name field.
Set its value to false, then when you click on the magnet link you will be prompted for the program to open the link with, I chose /usr/bin/qbittorrent
For Iceweasel the proceadure is just in the browser:
Type in the direction bar about:config.
In the search box type handler.expose
Right click, select new, boolean and write network.protocol-handler.expose.magnet in the preference name field.
Set its value to false, then when you click on the magnet link you will be prompted for the program to open the link with, I chose /usr/bin/qbittorrent