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. Hdpi support for QCursor in qt6
Forum Updated to NodeBB v4.3 + New Features

Hdpi support for QCursor in qt6

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 280 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.
  • S Offline
    S Offline
    sushantjoshi
    wrote on last edited by sushantjoshi
    #1

    Hi,
    I was wondering if qt6 has provided any native support for high dpi cursors (just like icons https://doc.qt.io/qt-6/qicon.html#high-dpi-icons)? If my understanding is correct, we can provide image resources to QIcon and Qt will automatically switch to high or low resolution image depending upon the devicePixelRatio of screen/window. Do we have something similar for QCursor, so I can provide multiple resolution images (PNG) while creating a QCursor and qt manages which version of the cursor will be shown? If not, do you think providing svg instead of a png while creating QCursor will allow some control on the scaling of the cursor? Thanks

    1 Reply Last reply
    2

    • Login

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