Give the step from OpenCV Mat to QImage and you should be fine.

Broken

QImage plateImage = QImage((const unsigned char*)(mymat.data), mymat.cols, mymat.rows, QImage::Format_RGB888)

Fixed

QImage plateImage = QImage((const unsigned char*)(mymat.data), mymat.cols, mymat.rows, mymat.step, QImage::Format_RGB888)

Here is an example how the image/video is distorted

Here the problem has been fixed

I found the answer from this StackOverflow thread.