Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. ShareUiInterface do not work properly
Qt 6.12 LTS is out! See what's new in the release blog

ShareUiInterface do not work properly

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

    Hi,

    I'm trying to add sharing functionality to my MeeGo Harmattan application but encountered a problem with ShareUiInterface. What I need is to share an image (like in gallery) and I do it as follows:
    @
    QStringList lShareItemList;

    QFileInfo lFileInfo (mFileName);
    QString lFileUri = lFileInfo.canonicalFilePath ();
    if (lFileUri.isEmpty ())
    return false;

    lShareItemList<<lFileUri;

    ShareUiInterface lShareInterface;
    if (!lShareInterface.isValid ())
    return false;

    lShareInterface.share (lShareItemList);
    @

    unfortunately if the image is not from the gallery (Picture or DCIM folders) share dialog is always empty. If image copied to gallery but was not viewed yet (no thumbnail) first attempt shows an empty share dialog as well. Second attempt shows image normally. I cannot understand the problem. I had impression that share dialog open only those images that have thumbnails available, but looking in thumbnails folder found that it's not true (no new thumbnails generated after successful share attempt), unless share dialog creates its own thumbnail folder somewhere in a system. Did any one experienced similar problem with share dialog in MeeGo Harmattan? Thank you in advance

    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
    • Unsolved