Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Mixing Qt C++ with Objective-C without Quick
Forum Update on Tuesday, May 27th 2025

Mixing Qt C++ with Objective-C without Quick

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 3.0k 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.
  • S Offline
    S Offline
    sadgin
    wrote on 26 Mar 2014, 11:38 last edited by
    #1

    Hello,

    Can somebody help me? I want to execute native ios file selection dialog, but cannot find any examples and documentations on how to use objective-C inside Qt applications without Quick.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Mar 2014, 21:47 last edited by
      #2

      Hi and welcome to devnet,

      Create a C++ header that contains the function you'll use to invoke the native file selection dialog.

      Then write a mm file that implements the function calling the Objective-C classes/code you need.

      Add the mm file to the OBJECTIVE_SOURCES variable.

      Then you should be good to go

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sadgin
        wrote on 28 Mar 2014, 03:23 last edited by
        #3

        Do you have any example with file selector and without qtquick?
        Cannot understand how it should work.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 Mar 2014, 07:33 last edited by
          #4

          I don't have code specific to the file selector, but you can take a look at the QtMacExtras module source code to see how you can mix C++ and Objective-C/C++

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          26 Mar 2014, 11:38

          • Login

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