How to add a widget in a view with rotation

Hello,

Please, enclose all code blocks between a heading ```cpp and a trailing ```. Please, also enclose in-phrase code between two `. This improves readability quite a lot.

thank you,

PC