Results 1 to 8 of 8

Thread: QString arg

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QString arg

    Another thing which came to my mind is that maybe you can use QString::split() and QStringList::join():
    Qt Code:
    1. QString test("_");
    2. QString result = QString("This is number 99.").split(' ').join(test);
    3. // this should give result = "This_is_number_99"
    To copy to clipboard, switch view to plain text mode 
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  2. The following user says thank you to faldzip for this useful post:

    PLUS (29th January 2010)

Similar Threads

  1. QString to hex
    By offline in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2009, 12:21
  2. QString help
    By mabeeh in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2008, 21:50
  3. Replies: 4
    Last Post: 31st January 2008, 20:44
  4. QString
    By krishbhala in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2008, 11:31
  5. how to copy part of QString to anothe QString
    By nass in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2007, 19:05

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.