Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, January 2008
Troubles getting access to the widgets in different processes

Pages: Prev | 1 | 2 | Next

Message 16 in thread

| pedro mateo || wrote:
> hi:
> 
> I think I cuold solve this problem using LD_PRELOAD to preloading my library
> and replacing some calls.
> Then I could create a server object with a TCP connection (or use standard
> in/out from QProcess) and get/provide what I want.

That sounds possible. I guess you'd only have to preload a few
of the low level libraries which collect keyboard/mouse events.
However,

a) I'm not sure if you can do this under Win32
b) some systems require that you have root privileges to do this

so it's probably not a general purpose solution.

-- 
 [ signature omitted ] 

Message 17 in thread

hi:

On Jan 16, 2008 12:10 PM, Stephen Collyer <scollyer@xxxxxxxxxxxxxxxx> wrote:

> | pedro mateo || wrote:
> > hi:
> >
> > I think I cuold solve this problem using LD_PRELOAD to preloading my
> library
> > and replacing some calls.
> > Then I could create a server object with a TCP connection (or use
> standard
> > in/out from QProcess) and get/provide what I want.
>
> That sounds possible. I guess you'd only have to preload a few
> of the low level libraries which collect keyboard/mouse events.
> However,


I can install an event filter on app2 that only reads (not consume) events.
For each event, the event filter can compose a QString with event info and
send it using TCP com to app1.
Then, I can send this QString (in the other way, from app1 to app2) to an
object resident int app2 who will create the appropiate event to run the
action saved before.

>
>
> a) I'm not sure if you can do this under Win32


I'm using a linux os.

>
> b) some systems require that you have root privileges to do this


With event filters, it is not neccesary.

>
>
> so it's probably not a general purpose solution.
>
> --
> Regards
>
> Steve Collyer
> Netspinner Ltd
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
regards!!!!

-- 
 [ signature omitted ]