ekkesSHAREexample icon indicating copy to clipboard operation
ekkesSHAREexample copied to clipboard

Support Qt6

Open VladimirR46 opened this issue 8 months ago • 10 comments

Good afternoon, great library and great project! But when will there be QT 6 support? It is very urgent now.

There are already attempts to create such a library, but they do not work well. https://github.com/mohsenkondori/QtAndroidViewShare

VladimirR46 avatar Oct 18 '23 14:10 VladimirR46

I'm just porting around 20 Apps from 5.15 to 6.6. https://t1p.de/ekkeChecklist
nearly finished. Then have to move from QMake to CMake. Then will re-create my example apps. so it will take some weeks or months... sorry... I'm a single independent app developer ;-)

ekke avatar Oct 18 '23 14:10 ekke

Thank you so much! I'll be waiting! I'm using Qt6 and cmake. And I just need to send text file (json) from android device via native FileDialog.

I wish you good luck! =)

VladimirR46 avatar Oct 18 '23 15:10 VladimirR46

My application is working, but there is no way I can solve the following problem( Perhaps you know how to fix it?

image

VladimirR46 avatar Oct 18 '23 15:10 VladimirR46

for your simple use-case you can try Qt 6.6 and QDesktopServices with the URL of your file. perhaps it's working

ekke avatar Oct 18 '23 15:10 ekke

for your error... have no time yet to inspect... too much work porting...

ekke avatar Oct 18 '23 15:10 ekke

Thank you! I've solved my problem! Just added: setClipData like

sendIntent.setType(mimeType);
sendIntent.setClipData(ClipData.newRawUri("", uri));
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
QtNative.activity().startActivity(Intent.createChooser(sendIntent, "Share protocol using"));

VladimirR46 avatar Oct 20 '23 20:10 VladimirR46

thx. will take a look at it later

ekke avatar Oct 21 '23 14:10 ekke

Hi, Any news in porting share examples to Qt6 ?

ApiTracer avatar Mar 07 '24 17:03 ApiTracer

still working on QMake -> CMake for my mobile business apps nearly done :) when all my apps are running without problems using CMake, I'll start reworking my example apps

ekke avatar Mar 08 '24 09:03 ekke

Ok, thanks for the update

ApiTracer avatar Mar 08 '24 09:03 ApiTracer