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.


  • Qt Champions 2016

    @gvanvoor said:
    there is screenChanged(QScreen*)
    signal


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.