PDA

View Full Version : Rotate QLabel



basania
17th May 2019, 07:58
Hello :)

I would like to rotate a QLabel for 270 degrees.

I tried a solution with a QGraphicsScene and it works, but the problem with it is that the label there does not scale if, for example, scale ratio in Windows changes (from 100% to 125%) and that is a problem.

Is there an elegant way to rotate a qlabel in 2019?

Thanks!

anda_skoa
17th May 2019, 15:10
Maybe the best approach is to describe what you need this for.

There might be a widget which does want you need or it could be easier to write a custom widget than to make QLabel do something it was not intended to do

Cheers,
_