Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Qt and Objective-C
QtWS25 Last Chance

Qt and Objective-C

Scheduled Pinned Locked Moved Unsolved Language Bindings
10 Posts 5 Posters 12.5k 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.
  • E Offline
    E Offline
    esdrasbeleza
    wrote on last edited by
    #1

    Is there any way to develop a Qt application using Objective-C as language?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamalakshantv
      wrote on last edited by
      #2

      Don't know if any bindings exist. But they don't really mix well, so better to use Qt instead of Objective C.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sfilippidis
        wrote on last edited by
        #3

        @Esdras Beleza: I am just wondering, why would you like to use an ObjectiveC/Qt combination?

        https://www.filippidis.name/

        1 Reply Last reply
        0
        • E Offline
          E Offline
          esdrasbeleza
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sfilippidis
            wrote on last edited by
            #5

            @Esdras: Well, my personal preference for use with Qt is C++. ;)

            https://www.filippidis.name/

            1 Reply Last reply
            0
            • E Offline
              E Offline
              esdrasbeleza
              wrote on last edited by
              #6

              @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.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sfilippidis
                wrote on last edited by
                #7

                @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. :)

                https://www.filippidis.name/

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rule
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sfilippidis
                    wrote on last edited by
                    #9

                    [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 ... ?

                    https://www.filippidis.name/

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SherifOmran
                      wrote on last edited by
                      #10

                      See this website and you know how to do it
                      https://el-tramo.be/blog/mixing-cocoa-and-qt/

                      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