Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像标题说的那样,如何将我的.h和.m文件添加到 Qt Creator?
.h
.m
在您的 Qt Creator 项目“.pro”文件中添加 OBJECTIVE_SOURCES,例如
OBJECTIVE_SOURCES += \ mac/cocoainitializer.mm
和通常的标题,比如
HEADERS += \ mac/cocoainitializer.h