Results 1 to 13 of 13

Thread: Convert QbyteArray to int return 0 (problem)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Convert QbyteArray to int return 0 (problem)

    In Yours code :
    1. First explicit conversion static_cast<quint8>
    2. Second implicit conversion (by compiler) from quint8 to int (type of variable).

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

    AUDI_ENG (8th July 2014)

  3. #2
    Join Date
    Jul 2014
    Posts
    26
    Thanks
    26
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Convert QbyteArray to int return 0 (problem)

    Quote Originally Posted by Lesiok View Post
    In Yours code :
    1. First explicit conversion static_cast<quint8>
    2. Second implicit conversion (by compiler) from quint8 to int (type of variable).
    OK Thank you

Similar Threads

  1. how to convert an int to QByteArray
    By babu198649 in forum Qt Programming
    Replies: 12
    Last Post: 19th September 2014, 09:47
  2. QHttp readAll() return empty QbyteArray
    By chamoda in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2013, 06:59
  3. Replies: 6
    Last Post: 23rd June 2010, 14:48
  4. how can we convert QByteArray to Qstring?
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2009, 14:05
  5. Convert from QByteArray to String ?
    By probine in forum Newbie
    Replies: 3
    Last Post: 25th March 2006, 15:49

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.