aboutsummaryrefslogtreecommitdiff
path: root/res/icon/melon_64x64.png
diff options
context:
space:
mode:
authorRayyan Ansari <rayyan@ansari.sh>2023-11-05 15:40:48 +0000
committerRayyan Ansari <rayyan@ansari.sh>2023-11-05 15:52:13 +0000
commitdf571078cfafcd0b98f3b84b84e44c97ac8ff7cf (patch)
tree5d6d86e49d6541f20aea8511f8a98615b3a9b9c8 /res/icon/melon_64x64.png
parent0aff9471c5a0f9f437e76cd9a7dd42312fc7968f (diff)
CameraManager: wait for camera to be loaded
In QCamera in Qt 5, the camera is required to have been loaded before querying its settings and resolutions. Doing so without loading being finished would result in the returned list being empty. See https://doc.qt.io/qt-5.15/qcamera.html#supportedViewfinderSettings Add a QEventLoop that waits for the state to change from Loading to Loaded before supportedViewfinderSettings() is called to ensure that valid information is returned. (Fixes my camera being blank in preview, same issue also presumed to occur when camera is needed in game, fix tested on a USB camera on a Linux system and Qt 5.)
Diffstat (limited to 'res/icon/melon_64x64.png')
0 files changed, 0 insertions, 0 deletions