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. Calling cocoa function from qt
Forum Updated to NodeBB v4.3 + New Features

Calling cocoa function from qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 614 Views 1 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.
  • Z Offline
    Z Offline
    ziggx
    wrote on 12 Jan 2017, 09:19 last edited by
    #1

    Hi therer,

    I'm running an exclusively mac program built on qt and i need to call CMTime (obj c function from CoreMedia). Is there a simple way to do this? Any help would be greatly appreciated. TIA

    Ziggy

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bludger
      wrote on 12 Jan 2017, 10:33 last edited by
      #2

      Hi Ziggy,

      Rename your source file to .mm and you're able to mix C++ and Objective-C. Also, include your source file in your pro file using:
      OBJECTIVE_SOURCES = MyFile.mm

      Hope that helps.

      Z 1 Reply Last reply 13 Jan 2017, 08:20
      1
      • B bludger
        12 Jan 2017, 10:33

        Hi Ziggy,

        Rename your source file to .mm and you're able to mix C++ and Objective-C. Also, include your source file in your pro file using:
        OBJECTIVE_SOURCES = MyFile.mm

        Hope that helps.

        Z Offline
        Z Offline
        ziggx
        wrote on 13 Jan 2017, 08:20 last edited by
        #3

        @bludger - Thanks, I'll try that...

        1 Reply Last reply
        0

        1/3

        12 Jan 2017, 09:19

        • Login

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