Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I rotate a QLabel in PyQt5?
I have a question! How can I rotate a QLabel in PyQt5?
I already did it with
but that did nothing!
You are being optimistic thinking QSS will accept that CSS --- it won't!.
See e.g. https://stackoverflow.com/questions/19489999/qlabel-rotation. I believe you can rotate its pixmap but not its text.
- It's C++ and not Python!
- How can i put a label into a QPixmap?
Nevertheless many thanks!
Most examples for Qt are in C++. If you can find a Python example that's fine. Otherwise you have to translate from C++ to Python, which I don't think is very hard.
You cannot put a
QPixmap. You can put a
How? If it wasn't so difficult to translate from C++ to Python?
Sorry, "How" what?
Load your picture in a QImage, rotate it and the make a QPixmap out of it before setting it on your QLabel.