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. Local Storage value of variable

Local Storage value of variable

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 513 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.
  • R Offline
    R Offline
    R4leY
    wrote on last edited by R4leY
    #1

    Hello guys i have a question. Is there another method of data storage then database and txt file ? for example dynamic value of variable. I need method which can be use dynamically without setup path in app code.

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

      Hi
      Unless you use a online server to store/send stuff in/to, there
      is not much alternatives to files.
      However, paths are not an issue if you use
      http://doc.qt.io/qt-5/qstandardpaths.html

      Why you need method to save values with no paths ?
      Trying to understand the goal.

      1 Reply Last reply
      1
      • R Offline
        R Offline
        R4leY
        wrote on last edited by
        #3

        I find solution. I use XML file to storage data and place it in the same folder. First try qt don't accpet

        QFile file("Data.xml");
        

        but qt restart repair it :).

        mrjjM 1 Reply Last reply
        0
        • R R4leY

          I find solution. I use XML file to storage data and place it in the same folder. First try qt don't accpet

          QFile file("Data.xml");
          

          but qt restart repair it :).

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

          @R4leY
          Ok :)
          But thats a file too.
          I guess you meant not to use plain text file then :)

          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