×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    16

    Set LED flash constantly ON does not work

    Hello,

    I've put together a small app that would turn the LED of my phone constantly ON (as a flash light). Even though the code is nicely compiled, the LED is not ON. I use QCameraExposure and Flash::Torch mode.

    I've been navigating through documentation and various forums where the procedure is described but no success for me. I tested the app on E6-00 and C7-00. There are apps available that enable the LED so hardware wise these phones support this feature.

    Anyone has a suggestion or solution to this?

    Many thanks.

    Peter

  2. #2
    Registered User
    Join Date
    Apr 2012
    Location
    malaysia
    Posts
    260

    Re: Set LED flash constantly ON does not work

    Did you include "mobility" respective component or in your pro. file?

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    16

    Re: Set LED flash constantly ON does not work

    Actually, I did. The code looks like:

    void MainWindow:n_pushButton_clicked()
    {
    QCamera* camera=new QCamera;
    QCameraExposure* cameraExposure = camera->exposure();
    cameraExposure->setFlashMode(QCameraExposure::FlashTorch);
    }

    In the .pro file, I have:
    **************
    symbian:TARGET.CAPABILITY +=

    CONFIG += mobility
    MOBILITY += multimedia systeminfo
    **************

    Thanks,
    Peter

Similar Threads

  1. image moving constantly - how?
    By Arvis17 in forum [Archived] Qt Quick
    Replies: 6
    Last Post: 2011-04-07, 05:47
  2. Softkeys don't work on N95 (Flash Lite 3.0)
    By can16358p in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-06-21, 18:05
  3. N800 Thumbboard doesn't work with Flash
    By sippykup in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-04-26, 04:31
  4. N95 constantly disconnecting from HS-36W
    By Nate in forum Bluetooth Technology
    Replies: 2
    Last Post: 2007-07-02, 19:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •