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. QFile in memory
Forum Updated to NodeBB v4.3 + New Features

QFile in memory

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 692 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.
  • HrishiGoblerH Offline
    HrishiGoblerH Offline
    HrishiGobler
    wrote on last edited by
    #1

    Hello there,

    One of my already existing interface accepts a file_name. (Further down in the library, it would be open and read).
    Now, I have another requirement in which the content of the file has to be in MEMORY ( not to be present physically).
    Is there any way thay I can create a File in memory, and may be just pass the QFile (so that, the file could be either physical or in memory)

    Thanks in advance

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What do you mean with 'in memory'? What do you want to do with it? If you want to read a file into memory use readAll() or read().

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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