qt - Meego 1.2 Harmattan and QCamera application -


Is there any way to work with the camera with the QCamera class in Nokia N9 (Mago 1.2 Harmatan) Should others use?

Here's my problem: Simple applications that work fine on Nokia C6-01 (Symbian Anna), do nothing useful on the N9.

Here are the code snippets:

testmobile.pro

  & lt; ... & gt; CONFIG + = Mobility MOBILITY + = Multimedia LIBS + = -lQtMultimediaKit & lt; ... & gt;   

mainwindow.h

class main window: public QWidget {Q_OBJECT & lt; ... & gt; Private: QCamera * camera_; QGraphicsView * view; QGraphicsVideoItem * videoItem; QGraphicsScene * view; & Lt; ... & gt; } MainWindow.cpp
  Main Menu :: QWidget * Guardian ... & gt; Camera_ = new quemera; See = New QGraphicsView (this); View = new QGraphicsScene (see); VideoItem = new QGraphicsVideoItem; View-> SetScene (view); Scene-> AddItem (videoItem); QVBoxLayout * lay = new QVBoxLayout (this); Draw & gt; AddWidget (see); This- & gt; SetLayout (keep); View-> Show (); Camera _- & gt; SetViewfinder (videoItem); Camera _- & gt; Start (); } & Lt; ... & gt;   

Then after the creation of the main menu item, it is shown that we will have a simple viewfinder on Nokia C6-01 and black screen on Nokia N9.

Any thoughts?

I got the solution! It was a security problem as I found - The analog of Symbian's "capabilities" in the Mego is called AGIS Security Token. Therefore, to request permission to work with the camera (or any other), you should add your_application_name.agis file to the "qtc_packaging / debian_harmattan" folder of your project. In my case this file contains:

   & Lt; Credential name = "GRP :: Pulse-Access" /> & Lt; Path = "/ opt / testmobile / bin / testmobile" /> & Lt; / Request & gt; & Lt; / Understanding & gt; Then the permissons defined in the "name" property of the "identification" tag and define the package to do these permissions with the "path to" tag.  

More information can be found

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -