Results 1 to 3 of 3

Thread: capCreateCaptureWindow in Qt

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    25
    Thanked 1 Time in 1 Post

    Default capCreateCaptureWindow in Qt

    Hi,
    I am using Qt4.3 with Visual Studio 2005. In my program I need to connect my program with a web camera. For that I use capGetDriverDescription in my program. It detect the web camera driver and display it in my window, with the helop of my code. But after that I give the command capCreateCaptureWindow. But It doesn't create the window. But, when I compile the program Qt return ' 0 errors'. Then why the window appear?
    How can I solve this problem.
    Please help me

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: capCreateCaptureWindow in Qt

    For that I use capGetDriverDescription in my program.
    you should realize, that there are so many frameworks, we can't know of which frame work the mentioned function is part of, so please, state that in your post, its is not polite to force the people who want to answer your post (and thus help you) to search google in trying to know what you mean.

    Also, this is not the first post/thread you posted on this subject.
    PLEASE - keep the same subject in one thread, don't fill the forum, it makes helping you harder.

    To your question it self - based on what I read in your other posts, it looks like you are mixing things (in this case, trying to create windows both through Qt and possible with direct win API).
    But with out code, it is very hard to tell, so please post relevant code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: capCreateCaptureWindow in Qt

    capCreateCaptureWindow and capGetDriverDescription are part of the Windows multimedia API(found in vfw.h, which is funny because I think it means "video for windows").

    Could we see how you use capCreateCaptureWindow? Anyway, this gives you a window handle, which will not be of much use in a Qt program. You'll probably have to use winapi to control the window anyway.

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
  •  
Qt is a trademark of The Qt Company.