Results 1 to 2 of 2

Thread: How widges communicate between projects?

  1. #1
    Join Date
    Dec 2009
    Location
    Shenzhen,China
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question How widges communicate between projects?

    Hello, i am an new guy for Qt. I used to develop in Mac OS with Xcode and cocoa.
    And now i meet an problem, that is how communicate between widges from different indepent project?
    When use slot and signal, it must to connect sender and receiver, but in different project, you can't do it.
    So how can i implement it? Is someting like NSNotification of cocoa in Qt? just send the notification, no matter who receive it?
    I guess i should subclass of QCustomEvent, is it right?

    Thanks in advance for any point.

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

    Default Re: How widges communicate between projects?

    Welcome to real programming! ;-)

    Qt signal slot mechanism is a nice way of calling function pointers.
    It only works in the application scope.

    If you want communication between processes, you will have to use one of the following:
    DBus (linux), Windows technologies like COM for windows, or more portable - shared memory, pipes and similar.

    By the way, you will have the same problem on Mac too, if you code with C/C++ (or not with cocoa).
    ==========================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.

Similar Threads

  1. Replies: 8
    Last Post: 20th November 2009, 14:38
  2. How to communicate between two forms
    By iamjayanth in forum Qt Programming
    Replies: 2
    Last Post: 7th April 2009, 08:17
  3. QtPlugins how to communicate between plugins?
    By BeS in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2008, 11:59
  4. How to communicate with external programs?
    By deekayt in forum Qt Programming
    Replies: 7
    Last Post: 27th October 2006, 23:01
  5. How to communicate between two different exe
    By Lele in forum Qt Programming
    Replies: 4
    Last Post: 9th July 2006, 13:02

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.