Results 1 to 3 of 3

Thread: QRegExp: too big for character

  1. #1
    ucomesdag Guest

    Default QRegExp: too big for character

    Qt Code:
    1. QRegExp rx("[\x0020-\x007F|\x2190|\x2192]{1,16}");
    2. QValidator *validator = new QRegExpValidator(rx, this);
    To copy to clipboard, switch view to plain text mode 
    I would like to add (QChar)0x2192 and (QChar)0x2190 but I get "too big for character" compile error's.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QRegExp: too big for character

    How about:
    Qt Code:
    1. QRegExp rx( QString::fromUtf8( "[\x20-\x7F\xe2\x86\x92\xe2\x86\x90]{1,16}" ) );
    2. QValidator *validator = new QRegExpValidator(rx, this);
    To copy to clipboard, switch view to plain text mode 
    ?

  3. The following user says thank you to jacek for this useful post:


  4. #3
    ucomesdag Guest

    Default Re: QRegExp: too big for character

    Quote Originally Posted by jacek View Post
    How about:
    Qt Code:
    1. QRegExp rx( QString::fromUtf8( "[\x20-\x7F\xe2\x86\x92\xe2\x86\x90]{1,16}" ) );
    2. QValidator *validator = new QRegExpValidator(rx, this);
    To copy to clipboard, switch view to plain text mode 
    ?
    I love you! thanks made my day!!!

Similar Threads

  1. QRegExp progblem
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2006, 12:12
  2. QRegExp?
    By Marco812 in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2006, 08:31
  3. need help for my QRegExp
    By patcito in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 16:29
  4. Trouble parsing using simple QRegExp
    By johnny_sparx in forum Qt Programming
    Replies: 4
    Last Post: 24th February 2006, 00:42
  5. IP adresses with QRegExp (Qt3)
    By jlbrd in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 13:43

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.