Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tell QFileDialog some files should not show on the list or indicate the files should not select on mac mojave(icloud)
Forum Updated to NodeBB v4.3 + New Features

Tell QFileDialog some files should not show on the list or indicate the files should not select on mac mojave(icloud)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 428 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by tham
    #1

    When using QFileDialog to select the files on iCloud, sometimes there are some files cannot select, do we have a way to

    1. find out which file cannot select(syncing etc)?
    2. hide the files cannot select?
    JonBJ 1 Reply Last reply
    0
    • thamT tham

      When using QFileDialog to select the files on iCloud, sometimes there are some files cannot select, do we have a way to

      1. find out which file cannot select(syncing etc)?
      2. hide the files cannot select?
      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @tham
      I don't know whether you will get your answer, but I think you should state whether you are using the native or the Qt QFileDialog?

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        What do you mean "by cannot select" ?
        Is that "Should not select ?"

        In any case if it's about filtering then you can do like with other views and use a proxy

        https://doc.qt.io/qt-5/qfiledialog.html#setProxyModel

        thamT 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi
          What do you mean "by cannot select" ?
          Is that "Should not select ?"

          In any case if it's about filtering then you can do like with other views and use a proxy

          https://doc.qt.io/qt-5/qfiledialog.html#setProxyModel

          thamT Offline
          thamT Offline
          tham
          wrote on last edited by
          #4

          @mrjj said in QFileDialog do not show or indicate the file cannot select on mac mojave(icloud):

          Is that "Should not select ?"

          Yes, you are correct, thanks, adjust the title, should be easier to understand.
          Do you know how to detect the file on iCloud already synced or not?On Mac mojave?Thanks

          mrjjM 1 Reply Last reply
          0
          • thamT tham

            @mrjj said in QFileDialog do not show or indicate the file cannot select on mac mojave(icloud):

            Is that "Should not select ?"

            Yes, you are correct, thanks, adjust the title, should be easier to understand.
            Do you know how to detect the file on iCloud already synced or not?On Mac mojave?Thanks

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Im not sure it works on all macOS versions but does
            brctl log --wait --shorten
            show anything useful?
            We could run that tool via QProcess for an easy solution not involving using native code.

            https://apple.stackexchange.com/questions/151421/how-do-i-know-if-a-file-has-been-successfully-synced-to-icloud-drive

            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