Results 1 to 2 of 2

Thread: How to do this QtSDK + Mac QTKit.framework?

  1. #1
    Join Date
    Feb 2006
    Posts
    31

    Default How to do this QtSDK + Mac QTKit.framework?

    Hi,

    I have a program that is written in Qt4.6.3.
    I need to capture webcam video stream and feed this video stream into my QT app.

    I wrote a QT static library and it calls win32 VFW (or DirectShow) APIs to get webcam video stream. And my QT app will link against this QT static library. It works well on win32 machines.

    However, I need this app running on Mac OS too.

    So, I use the same QT app code. But for the lower level QT static library, how do I call QTKit APIs? QTKit.framework is actually a cocoa framework and I should write a objective-c code.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Posts
    31

    Default Re: How to do this QtSDK + Mac QTKit.framework?

    Since no one answer my question, I already found a solution.

    First, I created a static cocoa library from Xcode, and including QTKit.framework.
    Then, my .pro file of my QT app needs to include this static lib.
    The still unknown part is I need to call functions between QT C++ app and cocoa static lib (objective-c++) in two ways.
    The unknown part is I know I can do that when I writing C code in app and objective-c code in cocoa. But, I don't know how to do that in C++/Objective-C++.

Similar Threads

  1. CAD GUI Framework
    By qtoptus in forum Qt-based Software
    Replies: 9
    Last Post: 4th October 2010, 13:06
  2. qtsdk installtion works,but nothing comes like qtcreator-urgent
    By savaliya_ambani in forum Installation and Deployment
    Replies: 1
    Last Post: 3rd July 2010, 13:53
  3. Problem in QtSDK
    By c_srikanth1984 in forum Qt Tools
    Replies: 3
    Last Post: 6th April 2009, 05:16
  4. QT4.5 and QTKit on MacOS
    By giandrea77 in forum Qt Programming
    Replies: 4
    Last Post: 1st April 2009, 10:02
  5. new with qtsdk x windows
    By Ricardo_arg in forum Newbie
    Replies: 2
    Last Post: 25th March 2009, 16:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.