Results 1 to 3 of 3

Thread: error passing QString ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 8 Times in 7 Posts

    Default Re: error passing QString ?

    I think that you cannot change const object
    Qt Code:
    1. QString getPhoneMask(const QString &text)
    2. text.remove(QRegExp("[()-]"));
    To copy to clipboard, switch view to plain text mode 
    you can write
    Qt Code:
    1. QString getPhoneMask(const QString &text)
    2. {
    3. QString tmp = text;
    4. tmp = tmp.remove(QRegExp("[()-]"));
    5. //
    To copy to clipboard, switch view to plain text mode 

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

    vieraci (31st May 2009)

Similar Threads

  1. Qy 4.4.3 MySQL driver failed
    By pamalite in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd January 2010, 01:09
  2. Custom Model Advice Requested
    By mclark in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2008, 16:26
  3. easiest Way QString can do
    By baray98 in forum Qt Programming
    Replies: 12
    Last Post: 15th April 2008, 20:49
  4. Convert from iso-8859-1 to... Something else :-)
    By Nyphel in forum Qt Programming
    Replies: 4
    Last Post: 7th March 2007, 17:59
  5. Converting QString to unsigned char
    By salston in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:10

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.