Results 1 to 5 of 5

Thread: Qt Integration

  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Qt Integration

    I took a break from the video player I was trying to create with a frame-by-frame step feature. But I am back on that now and I have found a player that contains the frame-by-frame skipping. It is the playwnd program provided by Microsoft's DirectShow samples. What I would like to add to this sample are some buttons below the video player that would allow for the frame skipping, and possible a play/pause button and a stop button. These are already implemented through a menu system and keyboard shortcuts, but the buttons are a requirement. Is there anyway to use Qt to add these buttons to this already existing program? I know how to create buttons in the .ui file and I have experimented with them a little bit. But I do not know how I can add these to the already exisiting player. I am guessing that since this is a Microsoft sample, the code is implemented using MFC. I could be wrong, but this is just an assumption. Thank you for all your help and continued support to us Qt users!

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Qt Integration

    You can mix MFC and Qt, however this is neither nice nor portable. There are tools from Trolltech for migrating MFC-Apps with Qt but I think you'll have to buy them. You can get a handle for a QWidget using http://doc.trolltech.com/4.1/qwidget.html#winId and set up your directx context there. So the solution is to make a Qt-App and let directx render into a QWidget.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Re: Qt Integration

    I have read through the documentation for QWidget, but I am confused as to how I can stick in DirectX code into the widget and get it to display my video. I have a GUI all built and have a QFrame set aside to put the video into, but I am confused with the integration. Maybe I am not understanding the documentation correctly. If you have some ideas as to where I could look for some examples or more help, that would be great. Thanks!

  4. #4
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Integration

    I know my DirectShow object is a COM object and I think I know how to integrate this into my Qt project. My problem is trying to find the ID number to create a DirectShow object in a QWidget or perhaps a QAxWidget. Does anybody have this ID for a DirectShow object so I can access the object through Qt? I have seen numerous CLSIDs for DirectShow, but have no idea which one if any may be correct. Thanks again!
    Last edited by ToddAtWSU; 23rd January 2006 at 18:28.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Integration

    It should be in the documentation of the COM server (msdn.com probably)

Similar Threads

  1. Qt Visual Studio Integration
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 27th February 2009, 14:37
  2. Eclipse Integration and program not starting
    By Cruz in forum Installation and Deployment
    Replies: 1
    Last Post: 16th January 2009, 23:32
  3. Qt visual studio integration
    By yagabey in forum Installation and Deployment
    Replies: 2
    Last Post: 13th December 2008, 16:43
  4. Qt4 integration with VS2008 Express how-to interest?
    By thomaspu in forum Qt Programming
    Replies: 11
    Last Post: 21st May 2008, 13:53
  5. VS Integration plugins not visible
    By kemp in forum Qt Tools
    Replies: 1
    Last Post: 11th August 2006, 23:22

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.