S B
S B

Reputation: 8404

How to integrate Cocoa code in Qt

Like the title says, how do I add my .h and .m files to Qt Creator?

Upvotes: 2

Views: 430

Answers (1)

Soumya Das
Soumya Das

Reputation: 1665

Add OBJECTIVE_SOURCES in your Qt Creator project ".pro" file like

OBJECTIVE_SOURCES += \
mac/cocoainitializer.mm

and headers in the usual way like

HEADERS += \
mac/cocoainitializer.h

Upvotes: 1

Related Questions