Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

328
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda