×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    How to grab one frame with QCamera in Qt mobility?

    How to grab one frame with QCamera in Qt mobility?

    what can i do is that save the image on the harddisk and read it .

    Is there any good solution?

    THX

  2. #2
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    How to grab one frame with QCamera in Qt mobility?

    How to grab one frame with QCamera in Qt mobility?

    what can i do is that save the image on the harddisk and read it .

    Is there any good solution?

    THX

  3. #3
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,795

    Re: How to grab one frame with QCamera in Qt mobility?

    Did you already check out this article?
    http://wiki.forum.nokia.com/index.ph...ng_Qt_Mobility
    Pankaj Nathani
    www.croozeus.com

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    15

    Re: How to grab one frame with QCamera in Qt mobility?

    Quote Originally Posted by croozeus View Post
    Did you already check out this article?
    http://wiki.forum.nokia.com/index.ph...ng_Qt_Mobility
    yes,but i want to get the image from the memory not the hard disk .

    is there any better solution?

    thank you anyway

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    13

    Re: How to grab one frame with QCamera in Qt mobility?

    Because QVideoWidget inherited from QWidget you can use function render - http://doc.qt.nokia.com/4.6/qwidget.html#render
    //in constructor
    m_camera = new QCamera;
    m_videoWidget= new QVideoWidget(m_camera);


    //on timer
    QSize sz = this->m_videoWidget->size();
    QImage img ( sz, QImage::Format_RGB32 );
    this->m_videoWidget->render ( &img );

    and after this you can do what you want with camerasnap

Similar Threads

  1. Qt for Symbian development resources
    By liuxg in forum [Archived] Qt General ( Qt技术)
    Replies: 55
    Last Post: 2011-01-26, 04:06
  2. automatic rotate screen on meamo
    By fily_love in forum Nokia N9
    Replies: 27
    Last Post: 2010-04-06, 08:37
  3. gsreamer-0.10-plugins-good+Phonon
    By niqt in forum Nokia N9
    Replies: 10
    Last Post: 2010-03-05, 09:56
  4. FATAL ERROR - Applet 17 with certain png's
    By OneNineStudios in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-12-17, 13:11

Posting Permissions

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