Results 1 to 2 of 2

Thread: Camera error

  1. #1
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Camera error

    I've been tryin to make a prog to set flash on. I managed to run it on a Nokia C7 with out any compilation errors, but when I click the push button to set flash on I get the following error:

    [Qt Message] Camera error: "Failed to set flash mode."

    The code I've used is:

    QCamera *camera = new QCamera;
    QCameraExposure *cameraexpo = camera->exposure();
    cameraexpo->setFlashMode(QCameraExposure::FlashOn);
    I use Qt 4.7.4 with Qt Creator 2.2.0.

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: Camera error

    Try QCameraExposure::isFlashModeSupported ( FlashModes mode ) to see whether the developers have forgotten that flash mode from the Qt interface (which apparently is not so uncommon) or whether it just doesn't work.

Similar Threads

  1. Camera Frames in UI
    By Johncdy in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2011, 02:03
  2. Replies: 0
    Last Post: 8th December 2010, 12:44
  3. how to connect to the camera
    By zeshu in forum Qt Programming
    Replies: 0
    Last Post: 25th November 2010, 15:15
  4. IP camera
    By vinod sharma in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2010, 13:41
  5. Camera Detection
    By tiho_bg in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 20:09

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.