Unsolved Change Viewfinder Resolution in qt C++
-
This post is deleted! -
-
@Praveen-k Use some other site where login is not required.
https://postimage.org
http://tinypic.com -
I tried as @SGaist guided for posting pictures on forum. But unfortunately itz not posting. So here you can get it
https://postimg.org/image/x3po0e1lf -
The
camera
object itself seems to be null. Are you sure it's initialized correctly ? -
Ok. if i have not initialized it, can you help me on how to initialize it?
I have done the initialization as below:mCamera = new QCamera(this); mCameraViewFinder = new QCameraViewfinder(this); mCameraImageCapture = new QCameraImageCapture(mCamera,this); mCamera->start();
-
It's not your
mCamera
object that is null, it's yourcamera
object. -
How can i initialize it? Plz help me
-
It's your own custom class, how can I know where you use it or how you use it ?
-
Sorry.. I got it. Thanks for the solution man. Silly mistake from my side..
But after initializing new camera is starting. Wat if, i want the previous one -
Then don't create a new QCamera each time you change the resolution.