Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
Views
How to integrate Swift code in a Qt application

I know how to include and build objective-c sources in my QtApplication. Generally MyQtApplication.pro file includes objective-c source .mm files like this which does the trick and its quite easy.

# MyQtApplication.pro
ios {
    CONFIG  += objective_c
    OBJECTIVE_SOURCES += SomeObjectiveCSource.mm
    HEADERS           += SomeObjectiveCSource.hpp
}

Question:
Is there way to include .swift files as well? And hence include, build and call Swift code from C++ classes in a QtApplication? Does Qt officially support it now? Is there a concrete example I can look into?

I did look into this discussion. But I am looking for a concrete example.

Or, calling an API in .swift file from a .mm file which acts as a bridge inside my Qt Application? I am looking for concrete example if this is possible.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!