Open CV Casting variables problem in QT Creator (C++)

,

There probably is no cast. You can write a small helper function to firmat the data as string, see How to convert opencv mat into string c++ - Stack Overflow