Important: Please read the Qt Code of Conduct -

Subclassing NSApplication

  • Hi,

    I'm working on getting my CEF enabled application working on OS X, but I ran into an issue. The CEF documentation states that the NSApplication used must "Provide the CefAppProtocol implementation required by CEF.".

    I have no issues with compiling Objective C++ sources alongside the C++ sources, but I don't know how to go about providing this functionality. I'm assuming that somewhere inside QApplication, an NSApplication instance is defined and created.

    Any ideas on how to access the provide a CefAppProtocol implementation for my QApplication? If I could somehow override the internal NSApplication of the QApplication, that would do the trick, but I don't know if this is possible.

Log in to reply