Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Writing a text file into an IPhone
Forum Updated to NodeBB v4.3 + New Features

Writing a text file into an IPhone

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 1.6k Views 2 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.
  • N Offline
    N Offline
    NGV1
    wrote on last edited by
    #1

    With Qt 5.5, IOS and a IPhone4 target (iphoneos-clang QT5.5.0 for IOS), i use the QFile standard commands, but the file.isOpen() always returns 'false'. Is there some examples of writing files in IPhones with Qt ? Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Where are you trying to write that file ? You should use QStandardPaths and first get a valid writable location

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NGV1
        wrote on last edited by
        #3

        I want to write a "Datas.csv" file on root if possible ("/") or into the CurrentDir (Application), but it doesn't work (IODevice not created).
        Where can i find examples with QStandardPaths ?
        Thanks.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can't write in any of theses location on iOS nor Android for that matter. Look at writableLocation, it will return you a path suitable for writing.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • N Offline
            N Offline
            NGV1
            wrote on last edited by
            #5

            Ok thanks a lot. I managed to write my file in app/Documents using "QStandardPaths"
            Also, i know it's not a Qt relative question, but do you know what is the pending software of Finder in a IPhone (i now want to open my file on the IPhone!) ?
            Thanks again.
            Christian.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              AFAIK, there's currently no Apple equivalent for iOS, that may change in the future. You might find other application offering that service.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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