@Chris-Kawa Sorry for getting you into a mistake and for leaving my problem without any further explanation. So, the variable intArray is just a simple Qlist, i forgot to change its name before posting so please, excuse me for that.

For index, it looks like index = w * 4, and after that, there is value = qRgba(intArray[index-3], intArray[index-2], intArray[index-1],intArray[index]);

I know that if the length of my text is not divisible, it's not gonna work. And here the Qlist come in handy. I can check if this number is divisible by 4 and if yes, the code goes as it is now, but when it's not I wanted to add as many items equal to 0 as I need to make it divisible.

Does my explanation makes any sense? I will try try to explain it like that :

if (number is divisible by 4) {
here comes my algorithm for making this image
}
else
{
add as many number as it is needed to make it divisable to qlist and then run the algorithm
}
But then those error appeared and I don't really know how can I get rid of them :/

But, how could I make it with vectors? Would it be faster or safer than by using Qlist?

Thanks a lot for help!