Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6540377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:58:16+00:00 2026-05-25T10:58:16+00:00

Is there any way to work with camera with QCamera class in Nokia N9

  • 0

Is there any way to work with camera with QCamera class in Nokia N9 (Meego 1.2 Harmattan) or I should use another one?

Here’s my problem: simple application that works fine on Nokia C6-01 (Symbian Anna) doesn’t do anything useful on N9.

Here’re code snipets:

testmobile.pro

<...>
CONFIG += mobility
MOBILITY += multimedia
LIBS += -lQtMultimediaKit
<...>

mainwindow.h

class MainWindow : public QWidget
{
    Q_OBJECT
    <...>
    private:
        QCamera* camera_;
        QGraphicsView *view;
        QGraphicsVideoItem *videoItem;
        QGraphicsScene *scene;
    <...>
}

mainwindow.cpp

MainWindow::MainWindow(QWidget *parent)
: QWidget(parent)
{
<...>
    camera_ = new QCamera;
    view = new QGraphicsView(this);
    scene = new QGraphicsScene(view);
    videoItem = new QGraphicsVideoItem;
    view->setScene(scene);
    scene->addItem(videoItem);

    QVBoxLayout *lay = new QVBoxLayout(this);
    lay->addWidget(view);
    this->setLayout(lay);
    view->show();
    camera_->setViewfinder(videoItem);

    camera_->start();
}

<...>

So after MainWindow object is constructed and shown we’ll se a simple viewfinder on Nokia C6-01 and black screen on Nokia N9.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:58:17+00:00Added an answer on May 25, 2026 at 10:58 am

    I found solution!
    It was security problem. As I found – Meego has analogue of “capabilities” of Symbian. It’s called AEGIS security tokens.
    So, to request a permission to work with camera (or any other) you should add your_application_name.agis file into the “qtc_packaging/debian_harmattan” folder of your project.
    In my case this file consisted of:

    <aegis>
        <request>
            <credential name="GRP::video"/>
            <credential name="GRP::pulse-access"/>
            <for path="/opt/testmobile/bin/testmobile"/>
       </request>
    </aegis>
    

    So permissons are defined in the “name” property of “credential” tag and “for path” tag defines package to perform these permissions with.

    More information can be found here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to get the work item query results preview pane to
Is there any way to make this work in Java? public static void change(List<?
Is there any way I could run the following 'logical code' to actually work?
MyClass c = 10; Is there any way to make this code work? I
Is there any better way to make this query work? I'm looking for a
Is there any alternative to Axis2? Or the way to make it work (different
Is there any standard way to work with application settings in WinAPI? What I'm
is there any way to work with Java classes in the same of similar
Is there any way to work with F# on Visual Studio 2010 Expression Edition.
Is there any way to work on Objective-J in Windows platform ? Any such

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.