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 initialisation
Forum Updated to NodeBB v4.3 + New Features

Qml camera initialisation

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    beemaneni
    wrote on last edited by
    #1

    Hi
    I am using camera in Qml from QtMultimedia .Everything is quiet good.But the onlything i am struck with is i.e.,application freezes for 5-10 seconds when i start loading the camera state to loaded state.Initial on page load am making camera to be in unloaded state.i do not know how to over come this..Here is sample code
    @Camera {
    id: cameraBack
    captureMode: Camera.CaptureStillImage
    cameraState: Camera.UnloadedState
    }
    @
    up on some click event i am making
    @ cameraBack. cameraState = Camera.loadedState@

    Can anyone please help me with some solutions?

    Thanks
    Bala Beemaneni

    Bala B
    Infinite Computer systems
    Chennai

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      According to the doc "here":http://qt-project.org/doc/qt-5/qml-qtmultimedia-camera.html#cameraState-prop and if I it understood correctly, UnloadedState is suppose to take time for getting ready to capture image. But the application should not freeze. Can you check if it goes into LoadingStatus so that you can atleast display on your app that the camera is initializing ?

      157

      1 Reply Last reply
      0
      • B Offline
        B Offline
        beemaneni
        wrote on last edited by
        #3

        yeah it goes in to loading status wen i called but with some time delay...but i do not understand why it freezes the application to black colour background?

        Thanks
        bala beemaneni

        Bala B
        Infinite Computer systems
        Chennai

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          "QTBUG-41467":https://bugreports.qt-project.org/browse/QTBUG-41467 seems to be a closer to your problem or you could report this one too with more specific details.

          157

          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