Results 1 to 6 of 6

Thread: Cross Application Programming in QT

  1. #1
    Join Date
    Oct 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Cross Application Programming in QT

    Hiya!

    I've been weeding through the documentation for a while now, and I noticed that QT supports what they call UCOM, which is basically an adherence to the COM protocol for allowing inter-process communication, but I wanted to know from actual QT developers what they thought would be the best way to approach my problem is.

    Basically what I have to develop is an application that keeps a track of the types of video that you play on your computer.

    So like if you're watching DVD's, or downloading some season of some TV shows, it'll store it in a history tracker.

    So the model I wanted to follow was this:

    A) Have a listener application that exposes an interface for logging when you watch video content on your computer

    B) Create plugins for every major media player - Windows Media Player, Winamp, VLC, QuickTime, ZoomPlayer, etc., and then use those media players' API's to notify the listener application that you're watching something

    Being that VLC and WMPlayer can be on different OS's, I figured QT would be the best route to go.

    But what's the best way to let the plugin on VLC notify the listener application that you're watching something? My gut instinct is COM, but I don't want to develop Windows-specific software.

    Also - I'm not sure if QT allows you to do Windows COM in the open source edition.

    Thanks in advance for your input!

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 162 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Cross Application Programming in QT

    Have a look into QtDBus(There is (was?) work ongoing to bring DBus to windows as well. Don't know about its state, though.)

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

    Default Re: Cross Application Programming in QT

    Qt allows you to use everything you want. You simply won't get ActiveX support directly in Qt but you can still make COM calls. Anyway I'd suggest to use a solution based on shared memory.

  4. #4
    Join Date
    Oct 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cross Application Programming in QT

    It looks like the best cross platform route would be sockets (I just noticed that great example after installing the binary version instead of building the source only) To my knowledge, I should be able to set a listener on the socket, and then any type of application can send information to that socket, regardless of language or platform, right?

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

    Default Re: Cross Application Programming in QT

    Yes, although this is both advantage and disadvantage. It depends what you want really... If you want to provide some service for other application, a more high-level approach such as xml-rpc could be better.

  6. #6
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross Application Programming in QT

    I'd look into what the last.fm scrobbler uses. It is open source, based on Qt and has the exact functionality you describe(for music, not videos).

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Replies: 2
    Last Post: 28th April 2007, 09:02
  3. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37

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.