Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can someone provide an example to FILE IO with QML?
Qt 6.11 is out! See what's new in the release blog

Can someone provide an example to FILE IO with QML?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.2k Views 3 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.
  • M Offline
    M Offline
    MAthias_Va
    wrote on last edited by
    #1

    So I have some TextFields and I want to save/load it to and from a text file, which should be created on save button clicked!

    ODБOïO T 2 Replies Last reply
    0
    • N Offline
      N Offline
      Nifiro
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • M MAthias_Va

        So I have some TextFields and I want to save/load it to and from a text file, which should be created on save button clicked!

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @MAthias_Va hi
        see Settings QML Type

        M 1 Reply Last reply
        0
        • M MAthias_Va

          So I have some TextFields and I want to save/load it to and from a text file, which should be created on save button clicked!

          T Offline
          T Offline
          Tom_H
          wrote on last edited by
          #4

          @MAthias_Va See the Qt example "Text Editor". Basically you implement the IO in a C++ backend and call it from QML.

          1 Reply Last reply
          0
          • ODБOïO ODБOï

            @MAthias_Va hi
            see Settings QML Type

            M Offline
            M Offline
            MAthias_Va
            wrote on last edited by
            #5

            @LeLev I don't understand how setting can help! I couldn't get it!

            ODБOïO 1 Reply Last reply
            0
            • M MAthias_Va

              @LeLev I don't understand how setting can help! I couldn't get it!

              ODБOïO Offline
              ODБOïO Offline
              ODБOï
              wrote on last edited by
              #6

              @MAthias_Va i thought you want to save the string present in a TextField so it is still there when you restart the app. Since you use TextField i assumed texts are small strings, so Settings could be used to save them ..

              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