# SetMouseCursorWidget location wrong in 4K

**URL:** <https://forums.unrealengine.com/t/setmousecursorwidget-location-wrong-in-4k/428159>\
**Category:** C++\
**Tags:** cursor, unreal-engine, CPP, question, dpi\
**Created:** [June 26, 2018, 5:27pm UTC](https://forums.unrealengine.com/t/setmousecursorwidget-location-wrong-in-4k/428159 "2018-06-26T17:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byg\_ben](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@byg\_ben](https://forums.unrealengine.com/u/byg_ben)\
**Post date:** [June 26, 2018, 5:27pm UTC](https://forums.unrealengine.com/t/setmousecursorwidget-location-wrong-in-4k/428159/1 "2018-06-26T17:27:30Z")

</div>

We’re using `APlayerController::SetMouseCursorWidget` to use a UserWidget as our mouse cursor. It works perfectly at regular resolutions, but on a high-DPI 4K monitor, the cursor position is incorrect.

Its position doesn’t seem to be correctly scaled for DPI.

Does anyone know how to fix this?

---

<div class="post-metadata">

**Author:** ![cazeoj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cazeoj](https://forums.unrealengine.com/u/cazeoj)\
**Post date:** [August 30, 2018, 4:45am UTC](https://forums.unrealengine.com/t/setmousecursorwidget-location-wrong-in-4k/428159/2 "2018-08-30T04:45:53Z")

</div>

Hello Ben; I ran into this problem or a similar one and after some testing I think I may have found that the issue only happens when playing in a new viewport with the editor. I used powershell to open an independent instance of the game and the cursor locks to where it should be just fine.

---

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [October 9, 2018, 9:38pm UTC](https://forums.unrealengine.com/t/setmousecursorwidget-location-wrong-in-4k/428159/3 "2018-10-09T21:38:17Z")

</div>

Any news on that issue?
