Qt and Objective-C
-
wrote on 21 May 2010, 18:16 last edited by
Is there any way to develop a Qt application using Objective-C as language?
-
wrote on 22 May 2010, 07:37 last edited by
Don't know if any bindings exist. But they don't really mix well, so better to use Qt instead of Objective C.
-
wrote on 15 Jun 2010, 17:52 last edited by
@Esdras Beleza: I am just wondering, why would you like to use an ObjectiveC/Qt combination?
-
wrote on 15 Jun 2010, 18:00 last edited by
@Stavros:
I was just wondering about learning Objective-C someday. :) And since I'm interested in Qt (I've been learning it for some weeks) I'd like to know if I could learn both.
-
wrote on 15 Jun 2010, 18:04 last edited by
@Esdras: Well, my personal preference for use with Qt is C++. ;)
-
wrote on 15 Jun 2010, 18:10 last edited by
@Stavros, I like Qt in C++ and PyQt. :) I was just thinking about learn Objective-C and a Qt project would be a good start. Maybe there's some way of get C++ and Objective-C in the same project, but I think this kind of Frankenstein wouldn't mix very well, as @QtK said.
-
wrote on 15 Jun 2010, 18:37 last edited by
@Esdras: If you want to learn Objective C go ahead and learn it (I suppose you are interested in Mac OS X's applications development, so you need Objective-C/Cocoa). However, I agree that "mixing" objective-C with Qt is not an option, as far as I know. :)
-
wrote on 6 Jul 2010, 10:42 last edited by
Qt on mac already contain Objective-C code for native integration with Cocoa framework.
And there are some helpers methods to convert from Qt to Cocoa objects in Qt src. Look inside Qt sources, and pay attention to Cocoa integration.
Mixing on Objective-C and C++ is not "Frankenstain" and sometimes useful.
Embedding C++ code to Cocoa projects is normal practice, and as you know, Qt is C++. Moreover, gcc used for compiling both C++ and objective-C code, at least on Mac.Try it, and don't be afraid. Experimentation is the best way to learn something and give some extra skills and experiences.
-
wrote on 6 Jul 2010, 11:37 last edited by
[quote author="rule" date="1278412954"]Qt on mac already contain Objective-C code for native integration with Cocoa framework.
And there are some helpers methods to convert from Qt to Cocoa objects in Qt src. Look inside Qt sources, and pay attention to Cocoa integration.
Mixing on Objective-C and C++ is not "Frankenstain" and sometimes useful.
Embedding C++ code to Cocoa projects is normal practice, and as you know, Qt is C++. Moreover, gcc used for compiling both C++ and objective-C code, at least on Mac.Try it, and don't be afraid. Experimentation is the best way to learn something and give some extra skills and experiences. [/quote]
Interesting analysis from @rule! ;)
However, I was aware that mixing C++ with Objective-C is a procedure that is being used, but mixing C++/Qt with Objective-C ... ?
-
wrote on 6 Aug 2016, 06:09 last edited by
See this website and you know how to do it
https://el-tramo.be/blog/mixing-cocoa-and-qt/