Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Module "QtMobility.gallery" is not installed

Module "QtMobility.gallery" is not installed

Scheduled Pinned Locked Moved Solved Installation and Deployment
qmlandroidqt 5qtmobility
21 Posts 3 Posters 3.0k Views
  • 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.
  • jsulmJ jsulm

    @qAminzzz said in Module "QtMobility.gallery" is not installed:

    can i search all directories with QDiriterator ?

    yes, at least those where your app has read access

    Q Offline
    Q Offline
    qAminzzz
    wrote on last edited by qAminzzz
    #21

    @jsulm thank you so much
    it worked with these code:

    function:

    void searchPaths(QVariant path)
    {
        QStringList files; // add files to this ( paths )
        QStringList filter; // mp4 files filter
    
        filter << "*.mp4"; // add filter
    
        qInfo("-----");
    
        QDirIterator dir(path.toString(), filter, QDir::Files, QDirIterator::Subdirectories); // get all files in directory
        while (dir.hasNext())
        {
            qInfo() << dir.next();
            files << dir.next(); // 
        }
    }
    
    

    use:

    searchPaths("enter path here") 
    
    

    now i can sleep easy. thanks

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved