Results 1 to 3 of 3

Thread: Need support in removing the Carriage Returns

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Need support in removing the Carriage Returns

    Hello All
    As part of json response, I am getting a QString with multiple carriage returns.
    I need support in removing them , as the string is of quite a big size.
    I tried using
    Qt Code:
    1. QString::simplified
    2. QString::remove(QRegExp(["\r\n]));
    To copy to clipboard, switch view to plain text mode 
    Please find the string attached as a file.
    Attached Files Attached Files
    Last edited by kaml.mish; 28th March 2015 at 04:42. Reason: updated contents

Similar Threads

  1. insertPlainText and carriage return
    By RenanBS in forum Newbie
    Replies: 3
    Last Post: 28th August 2012, 18:41
  2. Carriage Return in QString
    By incapacitant in forum Newbie
    Replies: 7
    Last Post: 2nd December 2010, 09:18
  3. Having trouble with carriage return
    By FoleyX90 in forum Newbie
    Replies: 0
    Last Post: 27th May 2010, 16:15
  4. removing carriage return from QString
    By gren15 in forum Qt Programming
    Replies: 3
    Last Post: 28th June 2009, 22:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.