Important: Please read the Qt Code of Conduct -

Is there some event sent when the devicePixelRatio for a widget changes?

  • I'm using different images for hi res and low res screens, and in order to be able to use the correct one when moving a toplevel widget from a hi res screen to a low res screen, I'ld like to know if some event is sent to widgets when their devicePixelRatio changes?
    I'm currently monitoring the moveEvent of the top level widget in the relevant children but it would be handier if every widget was sent an event (currently (in Qt 5.3.1) they don't even get a paintEvent).
    Thanks in advance.

  • Lifetime Qt Champion

    @gvanvoor said:
    there is screenChanged(QScreen*)

Log in to reply