Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using device camera without Qt Mobility
Forum Updated to NodeBB v4.3 + New Features

Using device camera without Qt Mobility

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 3.3k 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.
  • M Offline
    M Offline
    mannu
    wrote on last edited by
    #1

    Hey
    I wanted to know is there any other way to access device camera in a symbian phone through a Qt application without using Qt Mobility. I read that the camera api has been removed form Qt Mobility. Please help me out

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      The camera API is available at "Qt Mobility 1.2.2 documentation":http://doc.qt.nokia.com/qtmobility/multimedia.html#camera-support. But if you insist on not using it as an alternative you combine "Symbian C++ camera API":http://www.developer.nokia.com/info/sw.nokia.com/id/1cde08b0-1f57-41ba-851b-776c43fdec6c/S60_Platform_Camera_Example_v3_0_en.zip.html with Qt.

      http://anavi.org/

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mannu
        wrote on last edited by
        #3

        after making the following changes

        .pro file

        CONFIG += MOBILITY
        MOBILITY += multimedia
        symbian:TARGET.CAPABILITY = UserEnviornment

        i am still not able to create objects for the QStillImageCapture Class.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          Did you run qmake after changing the pro file? What error did you get?

          http://anavi.org/

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mannu
            wrote on last edited by
            #5

            yep i ran it, i gives the error QStillImageCapture not declared in this scope. in the headers i have included Qcamera, QCameraViewFinder, QMediaObject, QObject, QVideoWidget. Am i missing any header files?????

            1 Reply Last reply
            0
            • L Offline
              L Offline
              leon.anavi
              wrote on last edited by
              #6

              If you use Qt Mobility 1.2.2 you should use the following approach to "capture a still image":http://doc.qt.nokia.com/qtmobility/multimedia.html#still-images.

              @
              camera = new QCamera;
              viewFinder = new QCameraViewfinder();
              viewFinder->show();

                   camera->setViewfinder(viewFinder);
              
                   imageCapture = new QCameraImageCapture(camera);
              
                   camera->setCaptureMode(QCamera::CaptureStillImage);
                   camera->start();
              
                   //on half pressed shutter button
                   camera->searchAndLock();
              
                   ...
              
                   //on shutter button pressed
                   imageCapture->capture();
              
                   //on shutter button released
                   camera->unlock();
              

              @

              http://anavi.org/

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mannu
                wrote on last edited by
                #7

                i am using qt mobility 1.2.0 what is the alternative for QCameraImageCapture here??

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mannu
                  wrote on last edited by
                  #8

                  hey lenon.anavi did it, included the header. One last thing, where is this image stored?

                  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