Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Camera always returns NULL for supportedViewfinderResolutions() on Android
Forum Update on Monday, May 27th 2025

QML Camera always returns NULL for supportedViewfinderResolutions() on Android

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
cameraqmlqt 5.6android
1 Posts 1 Posters 1.2k 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.
  • SkroopaS Offline
    SkroopaS Offline
    Skroopa
    wrote on last edited by Skroopa
    #1

    My app uses video processing (RTMP stream). For that, I did it through QVideoProbe, that gives me right bits() and QVideoFrame's width() and height(), and RTMP stream is great. But... Resolution of camera is always the constant and there is big troubles for streaming videos, that have resolution more than 1280x720.
    Tried to change viewfinder's resolutions on QML side (through Camera on various states UnloadedState / LoadedState / ActiveState) and, also, on C++ side (through QCamera), but supportedViewfinderResolutions() is always NULL (I'm using Android API 16, v4.1)
    How can I set resolution for Camera? Any solution?

    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