Top "Qbytearray" questions

A QByteArray is a class from the Qt toolkit which provides an array of bytes.

QByteArray to QString

I'm having issues with QByteArray and QString. I'm reading a file and stores its information in a QByteArray. The file …

c++ qt qstring qtcore qbytearray
Qt C++ QString to QByteArray Conversion

I have created an encrypt/decrypt program, when encrypting I store the encrypted QByteArray in a text file. When trying …

c++ qt qstring qbytearray
Load QPixmap from QByteArray in Qt?

I have a byte array with the contents of an image (in png/bmp or some other format). How can …

c++ qt qpixmap qbytearray
Convert unsigned char[10] to QBytearray;

I've seen a lot o questions around this, but so far none worked for me. I've tried the 2 most common …

c++ qt converter unsigned-char qbytearray
Convert QString into QByteArray with either UTF-8 or Latin1 encoding

I would like to covert a QString into either a utf8 or a latin1 QByteArray, but today I get everything …

c++ qt utf-8 latin1 qbytearray
QbyteArray data copy

I have two QByteArray, sData and dData. I want to copy n bytes from location x in dData i.e. &…

qt qbytearray
How can I convert QByteArray to string in Qt 5.3?

I am using some functions to convert QVector's to QByteArray's, for example: QByteArray Serialize::serialize(QVector<double> data) { …

c++ qt qstring qbytearray
Remove first bytes from QByteArray

I want to write a function in which QByteArray is input to the function. I want to remove some header …

qt qbytearray
Storing integer to QByteArray using only 4 bytes

It takes 4 bytes to represent an integer. How can I store an int in a QByteArray so that it only …

c++ qt integer qbytearray
Is there a shorter way to initialize a QByteArray?

In my program I work a lot with serial communication so QByteArray is used very often. I was wondering if …

c++ qt c++11 qbytearray qt5.6