Skip to content

A Qt-based solution for accessing Android Intents and iOS shares for sending and receiving files.

License

Notifications You must be signed in to change notification settings

timsee/QtMobileShareUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt Mobile ShareUtils

The goal of this project is to reduce the number of steps required in order to utilize native share interfaces on iOS and Android with Qt. In order to do this you will need to:

  • Update the app's permission to enable sharing files.
  • Add some Java/Objective-C code for handling the native interface.
  • Wrap this code in a Qt object.
  • Integrate this Qt object into your application.

Due to the cross-language nature of this task, creating a single drop-in library to handle all cases would be difficult. Therefore, I've broken down the task into as few steps as possible.

Most of the original legwork of figuring out how to share on iOS and Android came from this extremely useful series of blog posts (Sharing Files on Android or iOS from your Qt App) by Ekkehard Gentz. If you are interested in how the sharing works, this is a great place to look for more information.

Glossary

Pre-reqs

This project assumes that you have already successfully built a Qt application for iOS and Android. If this hasn't been done yet, check here for getting started documentation on Android, and here for iOS.

This project also assumes you are using Qt 5.13 or later. Qt android builds changed in 5.13, making backwards compatibility difficult.

android send iOS receive

About

A Qt-based solution for accessing Android Intents and iOS shares for sending and receiving files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published