Results 1 to 3 of 3

Thread: Can QByteArray takes place of BYTE?

  1. #1
    Join Date
    Feb 2007
    Posts
    47
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Can QByteArray takes place of BYTE?

    I have to change some codes from MFC into Qt,can I use QByteArray to take place of BYTE?
    Thank you very much!

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can QByteArray takes place of BYTE?

    Quote Originally Posted by hiuao View Post
    I have to change some codes from MFC into Qt,can I use QByteArray to take place of BYTE?
    Thank you very much!
    AFAIK QByteArray is nothing like a BYTE but rather a table of BYTEs... If MFC's BYTEs are real bytes then you can use char or unsigned char and maybe Qt has typedefs like qint8, quint8...
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Can QByteArray takes place of BYTE?

    Byte is usually an "unsigned char".

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.