Important: Please read the Qt Code of Conduct -

How can I register Qt app as default web browser on MacOS?

  • I'm trying to register my Qt app so it can appear as an option for the default browser in Preferences of desktop MacOS. Specifically I believe I'm hung up on registering the default URL handler. How can I do so with Qt? Will I need a Cocoa or Swift shim?

    Also, does a MacOS desktop app need an entitlements file for HTTP/HTTPS URLs, or is that only necessary on iOS?

    FWIW, I've already done the installEventFilter within the main.cpp and added URL keys to the Info.pList.

Log in to reply