Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Swift code in a Qt application
Forum Updated to NodeBB v4.3 + New Features

Swift code in a Qt application

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on 19 Mar 2019, 09:09 last edited by Nelson_Piquet
    #1

    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. Thanks to the Qt folks.

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

    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 am using Qt 5.12 commercial version.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Mar 2019, 22:22 last edited by
      #2

      Hi,

      Did you already saw this project ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      1/2

      19 Mar 2019, 09:09

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved