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. Toplaintext returns escape sequence preceeding the required characters
Forum Updated to NodeBB v4.3 + New Features

Toplaintext returns escape sequence preceeding the required characters

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 421 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.
  • D Offline
    D Offline
    deesha
    wrote on last edited by
    #1

    hello, i have used toplaintext method to get the text entered by the user in a textedit and i save it in a file through wostream, but i get the commas and new lines entered by the user as , and \n etc which is not what i want..a relevant part of my code is below:
    @
    key=ui->textEdit->toPlainText().toStdWString();
    json->AsObject()[L“guards”] = new JSONValue(key);
    std::wstring st = json->Stringify();
    myfile1 << st;
    myfile1.close(); @

    Please help as I am relatively new in C++ and need urgent help..
    [edit: added missing coding tags @ SGaist]

    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