Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there some event sent when the devicePixelRatio for a widget changes?
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 432 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gvanvoor
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved