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
QtWS25 Last Chance

Calling cocoa function from qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 590 Views
  • 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 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 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
      1
      • B bludger

        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 last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

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