Use new connect api

Change-Id: I552ae537d9f76e43902cd6967e63d91056786746
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>