Add a Qt4/Qt5 condition for QString <> ByteArray conversion