Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Regarding demo webcamera appliction in qt 3.2.2 on fedora 20



  • Hi all,

    I am new in qt. I am using qt 3.2.2 in fedora 20. I have to use this version only. Can any one tell me how to create demo webcamera application that capture images and video in qt 3.2.2? Thanks in advance. Please help me friends...


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    AFAIR, there was no multimedia module in Qt 3. So you would have to reimplement that part yourself. Out of curiosity, why are you locked to a Qt version that is 12 years old ?



  • Hi @Suraj ,

    Are you sure to use QT version 3.3.2 not to use QT Creator 3.3.2?



  • Thanks SGaist and Jean for your replay.
    Sir, I have to use a "QT creator 3.2.2" only for my application. As it is running on Fedora 15.
    So, "How to re-implement that part in qt3.3.3?" or "Is there any other solution that supports fedora 15?"
    Thanks in advance...guide me to complete this functionality.



  • @SGaist Thanks Sir for your replay.
    Sir, I have to use a "QT creator 3.2.2" only for my application. As it is running on Fedora 15.
    So, "How to re-implement that part in qt3.3.3?" or "Is there any other solution that supports fedora 15?"
    Thanks in advance...guide me to complete this functionality.



  • This post is deleted!


  • Hi,

    You could try the Camera example http://doc.qt.io/qt-5/qtmultimediawidgets-camera-example.html
    or the QML camera example http://doc.qt.io/qt-5/qtmultimedia-declarative-camera-example.html

    Both come with the examples in Qt 5.



  • Thank you sir,
    Sir,
    Right now i am trying this example. It Showing multiple error for header files. I added complete path for this header file then it resolve it. Sir, Suppose "one.h" showing error then i add complete path it resolves. But after some time it shows error in the "One.h" included header file. I also solve that.. But now system give errors in the code of that example in each line...So can you send me small demo application on my mail "dangat123suraj@gmail.com" . please sir....Help me to solve this problem...thanks in advance.



  • Try copying the example from the examples folder to your development folder. This sometimes helps with path issues, as then the project file should have correct paths.



  • k sir, i will try this, right now. thank you...



  • Sir i am doing what you have told.
    It shows error in ui_main_ui file that for include statement of "qcameraviewfinder.h". To solve this i locate this file and add path forr this file for QT5. Then it showing error for diffrent header files.
    ui_main_ui:-
    A. qcamerafinder.h:-
    1.qmediacontrol.h:-
    i. qmediacontrol.h
    2.qmediaobjects.h:-
    i. qtmultimediadefs.h
    ii.qmultimedia.h:-
    a. qtmultimediadefs.h
    3.qmediaservice.h:-
    i. qtmultimediadefs.h
    ii.qmediacontrol.h
    4. qvideowidget.h:-
    i.qwidget.h
    ii. qtmultimediawidgetdefs.h
    iii.qmediabindableinterface.h:-
    a. qmediaobject.h

    Above .h files problem came. I locate this files and add path for it(Select QT5 file)

    Now i got the last error for viewfinder which is unsolved yet for line
    "viewfinder = new QCameraviewfinder(tab);"

    Error as undefined refarance to viewfinder

    Can any body tell me how to solve this?


  • Lifetime Qt Champion

    What version of Qt are you getting this code from ? And what exact version of Qt are you using ?



  • Sir,
    I am using QT Creator 3.2.2
    and it is based on Qt versions 4.8.6 in path(system)
    compiler= Gcc (x86 32 bit in /usr/lib/ccache)
    debugger = system GDB at /usr/bin/gdb


  • Lifetime Qt Champion

    Did you properly install your system Qt for development ?



  • SIR, HOW TO CHECK AND INSTALL PROPER QT AND QT CREATOR?



  • sir, i have done recording video and capturing video by using following code. I just call this code by using slots of "capture image" and "record a video":
    // For Video:-
    system("ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -b 12000k -r 25 -t 00:00:55 test12.avi");

    //For image capture:-
    system("fswebcam -s 15 --jpeg 95 --save /abasfc.jpeg");

    Sir, i just want view this particular item on GUI at the time of capturing image and recording video.. How to do that?
    thanks in advance...


  • Lifetime Qt Champion

    Either grab the Qt SDK installer or use Fedora's package manager to install Qt.



  • Thanks all.


Log in to reply