Results 1 to 4 of 4

Thread: Qt android videoSurface

  1. #1
    Join Date
    Jul 2012
    Posts
    123
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt android videoSurface

    hey guys,
    i need your help,
    i made app for android where i use QCamera and custom VideoSurface(nothing special just edited present function) and the problem is present function in VideoSurface never get called
    Thanks for any help

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt android videoSurface

    It seems likely you are not using an instance of your subclass. If you had failed to implement present() with the correct signature, the most common problem, then the compiler would have advised it could not create an instance of your class for want of the missing pure virtual.

  3. #3
    Join Date
    Jul 2012
    Posts
    123
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt android videoSurface

    Thank you for answer but this is not it. The app works on Pc but doesnt on Phone. After some test I think the problem is in function
    Qt Code:
    1. VideoSurface::supportedPixelFormats(
    2. QAbstractVideoBuffer::HandleType handleType) const
    To copy to clipboard, switch view to plain text mode 
    Because when I don't add any supported pixel formats and run app on PC I get same result(blank screen) as on phone. I tried add all formats but still nothing.
    Any other tips?
    Thanks

  4. The following user says thank you to Viper666 for this useful post:

    boudie (8th February 2014)

  5. #4
    Join Date
    Jul 2012
    Posts
    123
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt android videoSurface

    Hey
    i made some changes and i have new problem, forget about everything before this
    i use QCameraViewFinder and i can change its settings with QCameraViewFinderSettingsControl class and i get pointer on it with this:
    Qt Code:
    1. QCameraViewfinderSettingsControl *control = qobject_cast<QCameraViewfinderSettingsControl*>(
    2. viewfinder->mediaObject()->service()->requestControl(QCameraViewfinderSettingsControl_iid));
    To copy to clipboard, switch view to plain text mode 
    that's work on Pc perfectly but on Android Device i get null pointer and i dont know o.O
    Android Version: 4.4.2
    Qt Version: 5.2.1

    Thanks

Similar Threads

  1. Replies: 4
    Last Post: 10th July 2014, 15:22
  2. How do you make android applications display correctly on android phone?
    By Cyrebo in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 17th August 2013, 07:31
  3. is android app with qt 5.1 just compatible with android 4 ?
    By solook in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 14th August 2013, 16:23
  4. Qt in Android Possible?
    By Prabha in forum Installation and Deployment
    Replies: 5
    Last Post: 11th May 2011, 07:11
  5. qt on android
    By carlovv81 in forum General Discussion
    Replies: 3
    Last Post: 1st February 2011, 11:42

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.