Getters and setters for bytes in a QByteArray from scripts