Results 1 to 2 of 2

Thread: crc32 check on qstring

  1. #1
    Join Date
    Apr 2006
    Posts
    11
    Thanked 1 Time in 1 Post

    Default crc32 check on qstring

    hello,

    how can i simply create a check for a qstring value?

    thx in advice!!!!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: crc32 check on qstring

    From QByteArray docs:
    quint16 qChecksum ( const char * data, uint len )

    Returns the CRC-16 checksum of the first len bytes of data.

    The checksum is independent of the byte order (endianness).
    Maybe this is sufficient for you?

    There is also some crc32 implementation in Qt's 3rdparty sources src/3rdparty/zlib/crc32.*
    J-P Nurmi

Similar Threads

  1. QSqlQueryModel + set Write
    By raphaelf in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2006, 08:55
  2. Converting QString to unsigned char
    By salston in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:10
  3. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14:52
  4. [SOLVED] Widget plugin ... how to ?
    By yellowmat in forum Newbie
    Replies: 10
    Last Post: 29th January 2006, 20:41
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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.