Finally we did it in Qlik Sense, editing the ODBC connection.
When you are setting the connection, at the bottom you have some space fields (under the header advanced) where you can fill some settings. We tried the following ones and it worked fine:
Timeout = 0
ConnectionTimeout = 60000
QueryTimeout = -1