IOS open picture (or take a picture) support in 5.2 beta
-
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???
-
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.
-
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 -
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++
-
So, I'll just wait for the time being.
Thanks for the help. -
"Here":https://github.com/richardmg/qtdd13_qmlapp you can find the code
-
May I do this on Android? How?