Important: Please read the Qt Code of Conduct -

Hdpi support for QCursor in qt6

  • Hi,
    I was wondering if qt6 has provided any native support for high dpi cursors (just like 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

Log in to reply