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. IOS open picture (or take a picture) support in 5.2 beta
Qt 6.11 is out! See what's new in the release blog

IOS open picture (or take a picture) support in 5.2 beta

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 3.1k 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.
  • A Offline
    A Offline
    amahta
    wrote on last edited by
    #1

    Hi all
    I searched for this but it's nowhere to be found.
    Is there any way to access iOS media library using Qt 5.2 ??? Or camera?
    I checked QFileDialog but it seems it opens application reserved space in iOS.

    In Objective-C and standard iOS programming this is done by ViewControllers and ImagePickers etc. but I don't think it's possible to mix them together (C++ Qt and Obj-C) is it???

    Thou shalt programme
    http://www.amin-ahmadi.com

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Sure you can mix them, otherwise it would have been very difficult for Qt to be implemented on OS X. It's called Objective-C++. You can

      AFAIK, you currently need to use iOS classes for that. There was a demonstration during Berlin DevDays using QML and Objective-C++ that did exactly that.

      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
      • A Offline
        A Offline
        amahta
        wrote on last edited by
        #3

        Thanks SGaist
        Unfortunately I missed Berlin DevDays. Is there any way that I can access that demonstration??? If I can mix Qt and Standard iOs code I wont be having any problems, I think.

        The thing is, right now I'm developing using Qt Creator (and I don't want to switch back to XCode) so I'm not sure how Qt Editor will interpret Objective-C++ codes.

        By the way I was able to open images in iOs Simulator (which is not convenient at all) using QFileDialog after taking a look at the following article.
        https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html

        Thou shalt programme
        http://www.amin-ahmadi.com

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You might have to wait a little since there's the San Francisco DD going on next week. Sure you can mix them, there's nothing against it. Qt does this already.

          You don't need to switch back to XCode to write Objective-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
          • A Offline
            A Offline
            amahta
            wrote on last edited by
            #5

            So, I'll just wait for the time being.
            Thanks for the help.

            Thou shalt programme
            http://www.amin-ahmadi.com

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              "Here":https://github.com/richardmg/qtdd13_qmlapp you can find the code

              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
              • M Offline
                M Offline
                Mike20120228
                wrote on last edited by
                #7

                May I do this on Android? How?

                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