Display rotation should ideally be done by the IPU, but I have not seen any evidence that it is working yet on the i.MX6. The video unit tests currently only work through v4l2 and not the IPU, for example. I have used the IPU for rotation on the i.MX53, and I think it will work on the i.MX6 as well, eventually.
Until Freescale gets the IPU support fixed, you could use the ContentRotation or Decoration property of the QWindow class to do rotation. Take a look at:
http://qt-project.org/doc/qt-5.0/qtgui/qwindow.html#contentOrientation-propRotation is working on Android, but it uses OpenGL ES to rotate the desktop, instead of the IPU.
You might also take a look at Wayland's capabilities, but I am not familiar with that.
Regards, Clay