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. QTextEdit save to a text file
Forum Updated to NodeBB v4.3 + New Features

QTextEdit save to a text file

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

    i 'm completely new to QT, I am working on a c++ mini project that operates on a text file now i am trying to create a gui for that project, all i need is a simple gui that takes input from a QTextEdit and saves it to a text file when a button is clicked, then i can run my code on that text file and then display the output on screen, So my question here is how can i create a multi line text input that saves data to a text file?

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

      Hi and welcome to devnet,

      You already have QTextEdit, use QFile to load and store your data.

      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
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved